Skip to main content

createFunctionObject

Function

Dynamically creates a function object from a string of JavaScript code.

createFunctionObject(code, funcName): any

Dynamically creates a function object from a string of JavaScript code. This allows you to generate and execute functions at runtime.

Parameters

ParameterType
codestring
funcNamestring

Returns

any