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

Division Always Gives a Float

easyOperators

📄 Code

Read carefully — what does this print?
1let a = 7;
2let b = 2;
3console.log(a / b);
4console.log(Math.floor(a / b));
5console.log(a % b);

🎯 Your Answer