August 1999
Intermediate to advanced
1488 pages
72h 53m
English
eval(command) eval(string)
The eval() function accepts a string of JavaScript statements and evaluates it as JavaScript source code. eval() returns the value of the executed JavaScript statement.
Note
eval() has evolved with JavaScript. In the early releases of JavaScript, version 1.0, eval() was only a built-in function. When version 1.1 was released though, it was made a method as well. But when JavaScript version 1.2 was initially released, it was changed back to being just a built-in function. However, eval() was once again changed to a built-on function and method, with the release of Navigator 4.02 and later.
Listing 6.135 shows ...
Read now
Unlock full access