Learn Basic JavaScript Divide One Number by Another with JavaScript freeCodeCamp org

preview_player
Показать описание
So in this lesson we learnt
You can easily increment or add one to a variable with the ++ operator.

i++;

is the equivalent of

i = i + 1;

Note
The entire line becomes i++;, eliminating the need for the equal sign.

Change the code to use the ++ operator on myVar.

Learn about the assignment operators
US/docs/Web/JavaScript/Reference/Operators#Increment_()
Fact: Using python many developers are getting software jobs
Рекомендации по теме