Help with number 20?


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

What do I have to do? This is number 20


#2

You have to use the modulo (%) where you put your divison symbols(/), and print them out using console.logs.


#3

Thank you

It has worked and i have gotten really far. Im on ruby right now!


#4

Im having the same problem and im not getting how to do it. PLS HELP?


#5

For number 20 this should work:

// 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 );
console.log(14 % 3 );


#7

I just ran this on that number and it didn't work until i took out the ";" at the end of each function

Is this a bug in the program or is that legitimate JavaScript?


#8

on Js, it didn't work for me at first but I reset code and tried again and it worked. :smile: