eval

Enter a number into the boxes below and click Add 7:

Adding a number WITH eval():

Adding a number WITHOUT eval():




Enter the word "trees", "cats" or "cars" into the boxes below and click Process:

Entering a variable name WITH eval():

Entering a variable name WITHOUT eval():

View Source to see JavaScript.

Back to examples