Beginner
JavaScript
Q3 / 100
What is the output of 0.1 + 0.2 === 0.3 in JavaScript?
Correct! Well done.
Incorrect.
The correct answer is B) false
B
Correct Answer
false
Explanation
Floating-point arithmetic: 0.1 + 0.2 = 0.30000000000000004. Use Math.abs(result - 0.3) < Number.EPSILON for comparison.
Progress
3/100