top | item 9738714

(no title)

cedric123 | 10 years ago

How Is 0 not positive?

discuss

order

spleeder|10 years ago

Actually there is a positive 0 and a negative 0 in JavaScript. Try 1/+0 and 1/-0 in your browser console and notice how the result is different for each (+Infinity and -Infinity respectively).