Basic JavaScript - Increment a Number with JavaScript

Tell us what’s happening:
Describe your issue in detail here.
why isnt this working
Your code so far

var myVar = 87;

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

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

Challenge: Basic JavaScript - Increment a Number with JavaScript

Link to the challenge:

1 Like

You changed the variable declaration from let to var. You should not have changed that, it needs to be changed back to let

3 Likes

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