JavaScript Global Functions
The eval() function evaluates or executes an argument.
If the argument is an expression, eval() evaluates the expression. If the argument is one or more JavaScript statements, eval() executes the statements.
| Parameter | Description |
|---|---|
| string | A JavaScript expression, variable, statement, or sequence of statements |
![]()
The eval() function is supported in all major browsers.
Evaluate/Execute JavaScript code/expressions:
The output of the code above will be:
JavaScript Global Functions
Your message has been sent to W3Schools.