from string javascript 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'