Froquiz
Home
Quizzes
Job Tracker
Senior Challenge
System Design
Get Certified
Blog
🇬🇧
en
Sign In
Start Quiz
🇬🇧
en
Sign In
Start Quiz
Loading...
Quiz Topics
1
2
3
4
5
6
7
8
9
10
01
/ 10
Why does 0.1 + 0.2 === 0.3 return false in JavaScript?
Auto Skip
Report Issue
A.
The + operator in JavaScript first does string concatenation; result becomes "0.3" string
B.
In IEEE 754 floating point format 0.1 and 0.2 cannot be exactly represented; sum becomes 0.30000000000000004
C.
Decimal numbers in JavaScript are subject to rounding error; parseInt should be used for exact results
D.
This is a V8 engine-specific bug; returns true in other JS engines
Previous
Next