Home | Javascript validator | JavaScript Editor JavaScript EditorGet Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.
Microsoft® JScript®
eval Method
 Language Reference 
Version 1 

See Also                  Applies To


Description
Evaluates JavaScript code and executes it.
Syntax
eval(codestring)

The codestring argument is a String object that contains valid JavaScript code. This string is parsed by the JavaScript parser and executed.

Remarks
The eval function allows dynamic execution of JavaScript source code. For example, the following code creates a new variable mydate that contains a Date object:
eval("var mydate = new Date();");
The code passed to the eval method is executed in the same context as the call to the eval method.

Home | Javascript validator | JavaScript Editor JavaScript EditorGet Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.

Bitcoin Gambling - The Original Crypto Dice Game