Chapter 03
Numbers and BigInt
How JavaScript numbers work as IEEE 754 doubles, their special values, and when BigInt takes over.5 questions
- 010Why is
0.1 + 0.2 !== 0.3?Coming soonCoreeasy - 020What are
NaN,-0, andInfinity, and how do you test for them?Coming soonmedium - 030What's
Number.MAX_SAFE_INTEGER, and when do you need BigInt?Coming soonmedium - 040
Number()vsparseInt()vs unary+— how do they differ?Coming sooneasy - 050How do you sum floating-point numbers accurately?Coming soonmedium