Having a little problem here

Keeps saying:
You should use the

%

operator

what’s the problem?

Your code so far


const remainder = 2;
2%11;

Your browser information:

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

Challenge: Finding a Remainder in JavaScript

Link to the challenge:

Hi @The_Comrade !

Welcome to the forum!

I would reset the lesson.
Your answer should be one line of code.
Not two.

I think you are misunderstanding the challenge.

The challenge wants you to use the remainder operator to set the remainder variable equal to the remainder of 11 divided by 3

The issue here

is that you already found the remainder and manually assigned that to the variable.

But you are supposed to let the computer do that.
Take a closer look at the examples and see how you can use the remainder operator in your answer.

Hope that helps!

3 Likes

oh I get now thank you!

1 Like