Tell us what’s happening:
This is soooooooooo annoyingggggggggg. I am ready to give it a terrible punch , seriously.
This is the instruction:
Set remainder
equal to the remainder of 11
divided by 3
using the remainder (%
) operator.
Well, hello!!! How am I supposed to do that??? I cannot just plant “2” there in (const remainder = 2;) that will not work. Yet I must use the (%) in the answer. I don’t see where to put the word “remainder” and this lot (11 % 3 =2) on the same line, and still have “const” there too. If I am correct, I can have only one equal(=)sign in the answer. This is absolutely impossible. I know the answer is “2,” but the big headache is where to appropriately put the “2” and the word remainder. This is about to make my veins burst.
This should be so simple according to the instruction:
According to this instruction, one should just have to put 2 in the place of the zero. Rather, remove the whole thing and set remainder 11 % 3 = 2;
that should be it.
Your code so far
const remainder = 2;
const 11 % 3 = 2;
const remainder = 11 % 3 = 2; // is that the way it should be? Because this is the only way that could make sense to have the word "remainder" and this sign (%) on the same line equal to 2.
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36 Edg/111.0.1661.51
Challenge: Basic JavaScript - Finding a Remainder in JavaScript
Link to the challenge: