+ 2
How do you add in a different order other than i++ ?
Iâm a Rookie to JavaScript and Iâm really interested to know how do u add number in, 2âs and 3âs and 4âs or any other synonymous way other than i++! I hope someone will come with a great example along with explanation ! Thanks in advance đ
2 RĂ©ponses
+ 1
i+=3
for example, which is equivalent to
i = i + 3;
Works with variables and different operators too. Examples:
i*=7;
i%=2;
i\=x;
+ 1
Oh wow ! Thatâs cool
Thank You So Much @Kai Schlegel đđ»