Global JavaScript Tutorial

Syntax

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.


    
    
    
    
    
    Enter a JavaScript command in the text field and click the "execute" button to execute the command.
    


    Command: