Finding a Remainder in JavaScript It doesn't accept 11%3 nor 2%11

Finding a Remainder in JavaScript It doesn't accept 11%3 nor 2%11
0

#1

Tell us what’s happening:

Your code so far

// Only change code below this line

var remainder; 11%3;

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.101 Safari/537.36.

Link to the challenge:


#2

You need to change the semi colon after “remainder”

Set remainder equal to the remainder of 11 divided by 3 using the remainder (%) operator.


#3

Why do you have a semi-colon at the end of remainder?

The instructions say:

Set remainder equal to the remainder of 11 divided by 3 using the remainder (%) operator.

So an example of setting a variable equal to something looks like:

var myVariable = 10 + 5;

See if you can the challenge again with the above knowledge.


#4

Because I get the Errors:missing semicolon and expected assignment or function call and instead saw expression.


#5

var remainder; 11%3
var remainder; 2%11
neither of them works


#6

got it, remainder=11%3;