0
I want to know briefly the concept of i++ a d i-- with examples plz
give some examples of pyramids explaining use of i++,j++,i--&j--
1 Respuesta
+ 1
i++ (or whatever other character or string that you set as a variable) is the same to increment by 1 its value.
For example, in JS:
var m = 5;
alert(m);
m++;
alert(m)
Will return:
5
6
The -- operator does same thing but decrements instead of increments (following the previous example: >>> 5, >>> 4