CJCoding With Joseph
← Back to Question List
JavaScript Code Walkthrough #32

Floating-Point Addition

hardOperators

📄 Code

Read carefully — what does this print?
1console.log(0.1 + 0.2);
2console.log(0.1 + 0.2 === 0.3);
3console.log((0.1 + 0.2).toFixed(1));

🎯 Your Answer