True & False Are NOT Boolean!?

Javascript having both null and undefined is a bit of a mistake IMO but we can’t fix that one :slight_smile:

I’m not familiar with Edge’s JS engine but since it’s now Chromium under the hood it’s surprising to hear it’s different from Chrome.

Anyways there is a bit of a difference:

  • undefined = the variable was declared but never given a value
  • null = the variable was declared and given a value; but it represents null
1 Like