'Boolean' Example : Boolean : Javascript Objects JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Javascript Objects » Boolean »

 

'Boolean' Example



    
<html>
<body>
<script language="javascript">
    function myFunction(){
        var bool = new Boolean(true)
        alert(bool);
    }
</script>
<button onclick="myFunction();">True or false</button>
</body>
</html>

    
      
      



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Javascript Objects
» Boolean