Skip to content

Challenge Increment a Number with Javascript

SaintPeter edited this page · 1 revision
Clone this wiki locally

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.

Something went wrong with that request. Please try again.