CJCoding With Joseph
15free / daySign inCreate account
Back to Code Walkthrough

Integer Division with Math.floor

JavaScript code walkthrough · Question 11
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