Increment a Number with JavaScript Challenges

Increment a Number with JavaScript Challenges
0

#1

Tell us what’s happening:

Your code so far


var myVar = 87;

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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/increment-a-number-with-javascript/


#2

You don’t really need to use assignment operator here.