Basic JavaScript - Finding a Remainder in JavaScript

const remainder = 0;
remainder= 2 % 0;

eu preciso que remainder tenha o valor 2, e não sei como fazer.

You made two lines. The solution expects you to only use one line because you cannot change the value of a variable declared with const. Also, you aren’t looking for the remainder of 2 when divided by zero, double check the requested numbers.

Note - its way, way easier if you include a link to the Challenge!

1 Like

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