Saketh Kowtha
Articles by @sakethk

Articles by @sakethk

In javascript 0 * -1 = -0 !

Saketh Kowtha
·Aug 31, 2021·

1 min read

Subscribe to my newsletter and never miss my upcoming articles

Play this article

Do you know when we evaluate this 0 * -1 in javascript we will get -0 because javascript can hold positive 0 (+0) and negative 0 (-0).

Why +0 and -0 ?

Because the sign (+ and -) will represent the axis or direction.

 
Share this