5 ms·
> In this case, the answer is yes, absolutely. No, it isn't, absolutely. `===` means that javascript does a normal equality test, whether it be string compari
by knome 17y ago
> In this case, the answer is yes, absolutely.
No, it isn't, absolutely.
`===` means that javascript does a normal equality test, whether it be string comparison or numerical comparison, but without any type conversion. It means that while `"3" == 3` is `true` when you execute `"3" === 3"` it is false.
Given two `NaN`s, it would see they're both floats, do a floating point comparison, and return `false`. As it should.