Boolean.toSource() : Boolean « Number Data Type « JavaScript Tutorial






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>








5.2.Boolean
5.2.1.Boolean
5.2.2.Boolean Object Verses Primitive Boolean Value
5.2.3.Boolean.prototype
5.2.4.Boolean.toSource()
5.2.5.Boolean.toString()
5.2.6.Boolean.valueOf()