I love to hate JS with a passion, but did really enjoy this article. Sometimes I do have to interview candidates. Interestingly, several of these I do actually use.
The main one is
0.1 + 0.2 === 0.3 . Since I work for a POS company, we have to deal with a lot of currency calculations. The question is phrased in the way of “This happens, do you know why? How can it be avoided?”
Very few people get this question correct. However, you have one slight mistake. The rounding error is not a problem with JS, per se. You will encounter this error in any other dynamic or strictly typed language that uses binary floating-point types since many numbers cannot be represented exactly with a pow2 exponent.