3 ms·
javascript: > 1/(-0) -Infinity > 1/0 Infinity > Object.is(0, -0) false Of course = doesn't actually test equality in javascript. == r
by kybernetikos 8y ago
javascript:
> 1/(-0)
-Infinity
> 1/0
Infinity
> Object.is(0, -0)
false
Of course = doesn't actually test equality in javascript. == reports -0 as being equal to +0, but Object.is reports them as different.
- earenndil 8y agoSee now, I contest this particular defense because it groups together 'javascript' and 'good decision'.