Math and the modulo: recurring error that I left out code (which I didn't)


#1

Hi!

I keep getting an error saying that I didn't divide 14 into 3 to get a remainder.

Here is the code.

// Below is an example of printing the remainder of 18/4 using modulo:
// console.log(14 % 3);
// console.log(99 % 8);
// console.log(11 % 3);

Can anyone tell me what I am missing?


#2

When you use //, that tells the JavaScript interpreter to ignore that line. We use those // when we want to add comments to our code.

Do you see the problem now?


#3

Thank you so much! I see the problem now.