== vs === Debate
The cluster focuses on debates about equality comparison operators in programming, particularly JavaScript's loose == versus strict ===, their behaviors, best practices, and comparisons to operators in languages like Python.
Activity Over Time
Top Contributors
Keywords
Sample Comments
It's a huge stretch to claim that === isn't secondary to ==.
Maybe they mean == instead of ===.
Can you provide an example where equals sign is not equality I'm curious.
Why are you using "=="? Use "===" and make explicit casts as required.
(snarky comment about equality operators goes here)
In JS, there is == and ===Some are more equal than others.
It's so funny. Anybody still using == with js?
You're not supposed to use ==. It's there only for backwards compatibility.
I don't know if anyone else noticed this but when I see '==' I think comparison not assignment.
I dont see the big deal to be honest. If youre using == you're probably approaching the conditional too sloppily to begin with