Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

string to code javascript

var theInstructions = "alert('Hello World'); var x = 100";

var F=new Function (theInstructions);

return(F());
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #string #code #javascript
ADD COMMENT
Topic
Name
5+3 =