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

16th Apr 2019, 8:10 PM
Ginfio
Ginfio - avatar
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
16th Apr 2019, 8:44 PM
I‘m SarahđŸŒč
I‘m SarahđŸŒč - avatar
+ 7
x++ and i++ means x = x+1 and i = i + 1 or simply i += 1 and x +=1.
17th Apr 2019, 1:09 AM
VEDANG
VEDANG - avatar
+ 2
It's post increment. You can find more info in JS course https://www.sololearn.com/learn/JavaScript/1130/
16th Apr 2019, 8:26 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar