Basic JavaScript - Increment a Number with JavaScript

Tell us what’s happening:
Describe your issue in detail here.
I believe the code should be good on this one, but that isn’t my issue. For some reason on a few of my questions I haven’t been able to submit anything, I’ll click on submit and nothing will happen. I’ve skipped a few questions that do this, but this is the first one I’ve had issues on.
Your code so far

let myVar = 87;

// Only change code below this line
myVar = myVar 87++;

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.102 Safari/537.36 OPR/90.0.4480.117

Challenge: Basic JavaScript - Increment a Number with JavaScript

Link to the challenge:

You cannot submit successfully because you have syntax errors

SyntaxError: unknown: Missing semicolon. (4:13)

  2 |
  3 | // Only change code below this line
> 4 | myVar = myVar 87++;
    |              ^

You cannot ignore these errors. You have to fix them.

Well I can’t tell why tell why you are not able to submit anything, but your code here definitely would not pass :slightly_smiling_face:
currently you have something like myVar = 87 (87 = 87+1)

Tell us what’s happening:
Describe your issue in detail here.
I believe the code is right, but the submit button won’t let me submit the answer
Your code so far

let myVar = 87;

// Only change code below this line
myVar = myVar 87++;

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36 OPR/91.0.4516.72

Challenge: Basic JavaScript - Increment a Number with JavaScript

Link to the challenge:

This code is not the correct syntax.

This is a syntax error.

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