Your first JavaScript program
What appears in the console?
Examples
Worked example
Input
console.log(10 % 4);
Expected output
2
Hints and solution
Hint 1
Write down the starting state and walk through one example by hand.
Reveal worked answer
The remainder after dividing 10 into groups of 4 is 2.