javascript eval string and number code example
Example 1: javascript execute string code
var theInstructions = "alert('Hello World'); var x = 100";
var F=new Function (theInstructions);
return(F());
Example 2: convert string of expression in to expression in javascript
eval(string)