== 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.

📉 Falling 0.3x Programming Languages
3,715
Comments
20
Years Active
5
Top Authors
#1641
Topic ID

Activity Over Time

2007
4
2008
27
2009
81
2010
77
2011
153
2012
180
2013
168
2014
215
2015
218
2016
246
2017
290
2018
303
2019
247
2020
288
2021
295
2022
255
2023
302
2024
192
2025
170
2026
4

Keywords

e.g PHP JS I.e VALUE equality comparison boolean equivalence string operators equals assignment comparisons js

Sample Comments

Dylan16807 Aug 15, 2023 View on HN

It's a huge stretch to claim that === isn't secondary to ==.

adolph Oct 26, 2012 View on HN

Maybe they mean == instead of ===.

Guthur Apr 11, 2018 View on HN

Can you provide an example where equals sign is not equality I'm curious.

sadfklsjlkjwt May 5, 2020 View on HN

Why are you using "=="? Use "===" and make explicit casts as required.

billpg Aug 24, 2013 View on HN

(snarky comment about equality operators goes here)

nojvek Feb 17, 2025 View on HN

In JS, there is == and ===Some are more equal than others.

ttty Sep 17, 2018 View on HN

It's so funny. Anybody still using == with js?

TheZenPsycho Nov 5, 2013 View on HN

You're not supposed to use ==. It's there only for backwards compatibility.

thedjpetersen Aug 24, 2011 View on HN

I don't know if anyone else noticed this but when I see '==' I think comparison not assignment.

dilutedh2o Aug 14, 2020 View on HN

I dont see the big deal to be honest. If youre using == you're probably approaching the conditional too sloppily to begin with