JavaScript evaluation isn’t limited to single statements. When you evaluate code that declares a function or variable, it’s saved into the context’s object space. context.evaluateScript(#""" function triple(number) { return number * 3; } """#) context.evaluateScript("triple(5)")? .toInt32() // 15 Handling Exceptions The evaluateScript(_:) method doesn’t expose an NSError ** pointer and isn’t impor