Object.eval() : Object : Object Oriented JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Object Oriented » Object »

 

Object.eval()









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>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Object Oriented
» Object