Syntax
object.eval(string)
The eval() method evaluates a string of JavaScript code in reference to this object.
<html> <body> <script language="JavaScript"> <!-- var x = 9; var y = 8; document.write("The result of x * y is: " + eval(x * y)); --> </script> </body> </html>