5 comments

[ 1.1 ms ] story [ 35.5 ms ] thread
(comment deleted)
How Is 0 not positive?
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).