<html>
<body>
<p id="demo">Click the button to create a boolean object, then display it's constructor</p>
<button onclick="myFunction()">Try it</button>
<script>
function myFunction()
{
var bool=new Boolean(0);
var x=document.getElementById("demo");
x.innerHTML=bool.valueOf();
}
</script>
</body>
</html>