Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js execute string

var myString = "console.log('I am Batman')";
eval(myString);
//carefull ! This will execute the code, therefore 
//be careful of where/how you got this string. 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #execute #string
ADD COMMENT
Topic
Name
1+1 =