String.toSource() : toSource : String JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » String » toSource »

 

String.toSource()









If this method is invoked on the core String object, it will return something like the following:








function String() { [native code] }



If it is invoked on an instance of the String object, it will contain the source of the instance you created.












<html>
    <script language="JavaScript1.3">
    <!--
    var myString = new String("Hello, World!");

    document.write(myString.toSource() '<br>');

    document.write(String.toSource());

    document.close();

    -->
    </script>
</html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo String
» toSource