'Boolean' Example : Boolean « Javascript Objects « JavaScript DHTML






'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>

    
      
      








Related examples in the same category