Table of Contents

About

Function can be create from a string as an object constructor with the new keyword

Syntax

new Function ([arg1[, arg2[, ...argN]],] functionBody)

Example

var adder = new Function("a", "b", "return a + b" );
// Call the function
console.log(adder(2, 3));

Documentation / Reference