Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
pcthrowaway
on Nov 4, 2024
|
parent
|
context
|
favorite
| on:
Interview gone wrong
1 == 1 == 1 is actually true in Javascript due to type coercion
You're probably thinking `1 === 1 === 1` which is indeed false
dartharva
on Nov 4, 2024
[–]
I tried 2 == 2 == 2 in my browser's (Chrome) console and it evaluated to false.
Buttons840
on Nov 4, 2024
|
parent
[–]
I stealth edited my post. Sorry.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
You're probably thinking `1 === 1 === 1` which is indeed false