Null and Undefined - Heroes who are equal to none in Javascript
· ☕ 1 min read
You have used null. You have used undefined. But, have you ever thought about what they mean to the world and to Javascript?
The fact is quite simple - we can’t do a null equality check.
1 2 3 4 console.log(1 == null); // false console.log(0 == null); // false console.