Why JavaScript has two zeros: -0 and +0

Do you know there are two valid zero representations in JavaScript? In pure mathematics, zero means nothing and its sign doesn’t matter. +0 = -0 = 0. Computers can’t represent value wel……

Similar

The JavaScript Standard

JavaScript has gone from being a marketing ploy to gain a tactical advantage, to becoming the core programming experience in the world’s most widely used application runtime platform. Where to, next?

Read more »

JavaScript vs. Unix Tools (part 2)

Once I did a work sample for an IT company in Sweden. I was even more junior then than now. My feedback was that they thought my solutions was OK, but not good. I don't know if I would've gotten the job since I got another before they had time to decide. (more…)

Read more »