▲ JavaScript puzzle: equal, but not the same at www.2ality.com▼4 up and 0 down, posted by floriancargoet 4363 days ago 1 comment
floriancargoet 4363 days ago. link 2 points ▲ ▼-0 and +0 are strictly equal but not the same. Here is another fun equal/different thing: NaN and NaN are the same but not strictly equal (NaN !== NaN). function isNaN(x){ return x !== x; }