Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
idbehold
on Aug 12, 2016
|
parent
|
context
|
favorite
| on:
Return True to Win
Do any of those return true if you use double equals? The distinction only really comes up when you have to different types on either side and then It will coerce one of the types to match the other.
TAForObvReasons
on Aug 12, 2016
[–]
That is correct. The canonical example is string-numeric coercion:
"0" == 0 && "0" !== 0
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: