Basic JavaScript - Increment a Number with JavaScript

Tell us what’s happening:
Only problem left that I don’t know how to do is;

Describe your issue in detail here.

Your code so far

let myVar = 87;

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

Your browser information:

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

Challenge: Basic JavaScript - Increment a Number with JavaScript

Link to the challenge:

The plus plus should be immediately after the variable (no spaces)

Also you don’t need the equal.

The plus plus will increment the value of the variable and set it to that new value all in one shot.

1 Like