Basic JavaScript - Finding a Remainder in JavaScript

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

The remainder should be 2. idk what i’m doing wrong
Your code so far

Your browser information:

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

Challenge: Basic JavaScript - Finding a Remainder in JavaScript

Link to the challenge:

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

----------------------------The remainder should be 2. idk what i’m doing wrong
Your code so far

const remainder = 2;
var remainder;
remainder = 11 % 3;

please post a link to the challenge so we can read it.

From my memory though, I think you don’t need to declare remainder twice.

i just posted a new one with the link

i merged the duplicate posts (just update your post next time you forget something rather than opening a brand new duplicate topic on the forum).

Try to look at your code.
You declared the variable twice.
You didn’t need to do that.
The entire solution for this step can be written on one line.

1 Like

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