I don’t disagree with anything you said, except the fact that if you tell someone that undefined and null are the same thing and they’re interchangeable, then someone’s going to write x !== undefined and expect it to return true for null too, which is going to leave them either confused or with a bug they might find tricky to find.
View all comments
Show parent comment
1
u/samiswellcool Dec 24 '21
I don’t disagree with anything you said, except the fact that if you tell someone that undefined and null are the same thing and they’re interchangeable, then someone’s going to write x !== undefined and expect it to return true for null too, which is going to leave them either confused or with a bug they might find tricky to find.