<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>JavaScript NULL</title>
</head>
<body>
<pre> <!-- Use pre element for work document.writeln() method -->
<script type="text/javascript">
var str = null; // Value assign null
document.writeln("str == undefined : " , str == undefined);
document.writeln("null == undefined : " , null == undefined);
document.writeln("null === undefined : " , null === undefined);
var bool = Boolean();
document.writeln("Default Boolean Context : ", bool); // Default Boolean context Returns false
var bool = Boolean(true);
document.writeln("True Boolean : ", bool); // Returns true
</script>
</pre>
</body>
</html>