2018-10-16 21:32:40 +05:30

254 B

title
title
Increment a Number with JavaScript

You can easily increment or add 1 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.