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

Division Always Gives a Float

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