Mega Code Archive

 
Categories / JavaScript Tutorial / Number Data Type
 

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>