Undefined vs Null

   typeof undefined    // undefined

   typeof null          // null

   null === undefined    // false

   null == undefined    // true

HTML file: Displayed by browser:
<body>
<p id="demo"></p>
<script>
   document.getElementById("demo").innerHTML =
   typeof undefined + "<br>" +
   typeof null + "<br>" +
   (null === undefined) + "<br>" +
   (null == undefined);
</script>
</body>

Okay, this isn't making too much sense to me at all!

BackTable of ContentsNext