Basic JavaScript - Finding a Remainder in JavaScript

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

const remainder;
11 % 3 = 9 remainder 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

Challenge: Basic JavaScript - Finding a Remainder in JavaScript

Link to the challenge:

What you have above is not legal JS. If I told you to set remainder equal to the sum of 11 + 3 then you would do:

const remainder = 11 + 3;

Instead, the instructions are asking you to set remainder to the remainder of 11 divided by 3. You can get the remainder of dividing two numbers using the remainder operator, which is %.

Does this give you enough information to solve it?

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.