An Interest In:
Web News this Week
- April 24, 2024
- April 23, 2024
- April 22, 2024
- April 21, 2024
- April 20, 2024
- April 19, 2024
- April 18, 2024
August 30, 2021 06:03 pm GMT
Original Link: https://dev.to/sakethkowtha/in-javascript-0-1-0-1naj
In javascript 0 * -1 = -0 !
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.
Original Link: https://dev.to/sakethkowtha/in-javascript-0-1-0-1naj
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To