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--

6th Aug 2017, 4:34 PM
Ashwani Rautela
Ashwani Rautela - avatar
1 Antwort
+ 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
7th Aug 2017, 2:45 PM
Aarón Fortuño Ramos
Aarón Fortuño Ramos - avatar