Boolean.toSource() : Boolean : Number Data Type JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Number Data Type » Boolean »

 

Boolean.toSource()











Syntax








boolean.toSource()



The toSource() method returns one string representing the source of the Boolean object.

The string that is returned is enclosed in with parentheses.

The following example accesses the Source of a Boolean Object with the toSource() Method












<html>
    <script language="JavaScript">
    <!--
    bool = new Boolean(1);
    document.write(bool.toSource());
    -->
    </script>
</html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Number Data Type
» Boolean