Object.eval() : Object « Object Oriented « JavaScript Tutorial






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>








25.2.Object
25.2.1.The Object Class
25.2.2.Object()
25.2.3.Object.constructor
25.2.4.Object.eval()
25.2.5.Object.prototype
25.2.6.Object.toSource()
25.2.7.Object.toString()
25.2.8.Object.unwatch()
25.2.9.Object.valueOf()
25.2.10.Object.watch()
25.2.11.Add method to Object class