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

Integer Division with Math.floor

easyOperators

📄 Code

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

🎯 Your Answer