Tell us what’s happening:
Describe your issue in detail here.
does anyone know how to solve this issue? I’ve tried everything
Your code so far
const remainder = 0;
remainder = 11 % 3;
Your browser information:
User Agent is:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.82 Safari/537.36
Link to the challenge:
Using const sets a variable to a constant value and doesnt allow you to change it. So how can you change it?
let keyword instead of
let keyword , once initialized , can be changed and used as much as you need.
Note:- You can also use the
var keyword but it is not recommended as the let keyword , introduced in es6 replaces var for a lot of reasons. This is a good resource to understand the difference.
You don’t need to add any additional lines of code. You are tasked with setting the
remainder equal to the remainder of
11 divided by
3 using the remainder (
% ) operator
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.