+ 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 Answers
+ 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 šš»