Microsoft® JScript eval Function See Also |
Language Reference
|
Evaluates JScript code.
eval( codestring )
The codestring argument is a String object that contains valid JScript code. This string is parsed by the JScript parser and executed.
The eval function allows dynamic execution of JScript source code. For example:
eval("var mydate = new Date();");creates a new variable mydate that contains a Date object.