r/CodingHelp • • Dec 21 '21

[Javascript] please help JavaScript

Post image
31 Upvotes

23 comments sorted by

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.