Basic JavaScript - Finding a Remainder in JavaScript

Hi guys,

I would appreciate any help for this one. I literally didn´t understand the explanation and the exercise neither.

Thank you in advance.

Your code so far

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

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36

Challenge: Basic JavaScript - Finding a Remainder in JavaScript

Link to the challenge:

Hi, @tatianx! I’ll try to assist you on this one. When you use the remainder symbol, you are making a division of the two terms, but instead of returning the result of the division, you are returning its remainder. If you divide 11 by 2, you get 5 (2x5 = 10) and the remainder is 1 (2x5 = 10 + the remainder 1 = 11).

To complete this challenge, you have to replace the 0 in that line by the calculation. I hope this helps.

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