<html>
<head>
<title>
Using Boolean Object
</title>
</head>
<body>
<script type="text/javaScript">
let bool1 = new Boolean(0);
let bool2 = new Boolean(8);
let bool3 = new Boolean(2);
let bool4 = new Boolean("");
let bool5 = new Boolean("Hello");
let bool6 = new Boolean('false');
let bool7 = new Boolean(null);
let bool8 = new Boolean(NaN);
document.write("0 value is boolean :" + bool1+"<br>");
document.write("8 value is boolean :" + bool2+"<br>");
document.write("1 value is boolean :" + bool3+"<br>");
document.write("An empty string is boolean :" + bool4+"<br>");
document.write("String 'Hello' is boolean :" + bool5+"<br>");
document.write("String 'false' is boolean :" + bool6+"<br>");
document.write("null is boolean :" + bool7+"<br>");
document.write("NaN is boolean :" + bool8+"<br>");
</script>
</body>
</html>