We apologize for marking wrong answe as correct in previous question. Explanation was correct, but right answer was not marked properly by accident.
Correct answer is false.
Here are some additional ones.
javascript
console.log(0.1 + 0.2 === 0.3);
console.log([1, 2, 3] + [4, 5, 6]);
console.log(typeof NaN);
Answers:
1️⃣
false - floating point math isn't exact. 0.1 + 0.2 = 0.300000000000000042️⃣
"1,2,34,5,6" - arrays get coerced to strings and concatenated, not added3️⃣
"number" - yes, NaN is technically a number type. Ironic, we know.Got all 3 right? Drop a ✅
Missed one? Drop the number you got wrong - let's talk about it.