Q. What will console.log(0.1 + 0.2 == 0.3) print?

  • (A) false
  • (B) true
  • (C) undefined
  • (D) NaN
πŸ’¬ Discuss
βœ… Correct Answer: (A) false
Explanation: Due to floating-point precision, 0.1 + 0.2 is not exactly 0.3.
Explanation by: Mr. Dubey
Due to floating-point precision, 0.1 + 0.2 is not exactly 0.3.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
75
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
85%
Success Rate