Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript eval() function

eval(new String('2 + 2')); // returns a String object containing "2 + 2"
eval('2 + 2');             // returns 4
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #javascript #function
ADD COMMENT
Topic
Name
8+1 =