8
Can we talk about why == and === behave differently in JavaScript?
I used == by mistake and it caused a MAJOR bug in my script.
3 comments
Log in to join the discussion
Log In3 Comments
dylanfisher1mo ago
The time I spent three whole days debugging because '0' == false evaluates to true. Ngl, string addition turning into concatenation feels like that same kind of sneaky type coercion mess. Honestly makes you just want to use triple equals for everything.
3