Basic JavaScript - Finding a Remainder in JavaScript

Tell us what’s happening:
Describe your issue in detail here.
The test result says that there is a missing semicolon on the lefthand side. I can hardly see such a missing semicolon.

Your code so far

var remainder;
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/113.0.0.0 Safari/537.36 Edg/113.0.1774.42

Challenge: Basic JavaScript - Finding a Remainder in JavaScript

Link to the challenge:

First line is good, but your second line has two issues. First, you just have the variable name but you are not assigning anything to the variable. Do you remember how to assign stuff to variables? You are missing something between the variable name and the first number

Second, you are doing the calculation yourself, but thats now what you need to do. Ask the directions say

“ Set remainder equal to the remainder of 11 divided by 3 using the remainder (% ) operator”

Thats it, dont include the actual remainder

1 Like

Thank you
I forgot the equal sign after the name of the variable. Sorry.

2 Likes

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