javascript taking string to use as a function code example
Example: javascript function from string
var addition = Function("a", "b", "return a + b;");
alert(addition(5, 3)); // shows '8'
var addition = Function("a", "b", "return a + b;");
alert(addition(5, 3)); // shows '8'