Boolean Object Verses Primitive Boolean Value : Boolean : Number Data Type JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Number Data Type » Boolean »

 

Boolean Object Verses Primitive Boolean Value

















<html>
    <script language="JavaScript">
    <!--
    boolObj = new Boolean("false");
    document.write("boolObj = ",boolObj);
    document.write(" [",typeof boolObj,"]<br>");

    boolVal = Boolean(false);
    document.write("boolVal = ",boolVal);       
    document.write(" [",typeof boolVal,"]");    

    -->
    </script>
</html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Number Data Type
» Boolean