Some JavaScript data types can be a little difficult to understand, this is somewhat due to how JavaScript was initially written. For example:

null + null = 0
null / null = NaN
1 + null = 1
null === 0 //=> false
null == 0 //=> false
console.log(null) …

--

--