using eval to call a variable by string javascript code example
Example: javascript execute string code
var theInstructions = "alert('Hello World'); var x = 100";
var F=new Function (theInstructions);
return(F());
var theInstructions = "alert('Hello World'); var x = 100";
var F=new Function (theInstructions);
return(F());