DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
8+1 =
Submit