Basic JavaScript - Finding a Remainder in JavaScript

Tell us what’s happening:
The remainder question of 11%3 to have a remainder of 2, it seems pretty straight forward but i think I just don’t get the syntax right.

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


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

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

Challenge: Basic JavaScript - Finding a Remainder in JavaScript

Link to the challenge:

  1. you should not declare the variable twice

  2. you need to put the = in the right place. % is used like +, you shouldn’t manually calculate the result.

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