0
JavaScript: what does i++ or x++ mean
I see i++ and x++ on JavaScript code and I don't really see what it is doing. (Is it like "class" in html?) or what?'
3 Answers
+ 9
x++ is the short form of âx += 1â. It means that x is becomes judt one more, x + 1 ;) Thatâs very simple
+ 7
x++ and i++ means x = x+1 and
i = i + 1 or simply i += 1 and
x +=1.
+ 2
It's post increment. You can find more info in JS course https://www.sololearn.com/learn/JavaScript/1130/