+ 2
Can you explain these codes plz anf what is differnet between them??
var a = 3 function b(){ a++ alert(a) } b() & var a = 3 alert(a++) in the first shows 4 and in the second one shows 3
3 Answers
+ 4
Post increment firstly do operation and secondly increment variable.
Then alert(a++) is the same as alert(a) a++.
+ 2
Here. Go to the js tab and read the comments. âș
https://code.sololearn.com/W2o1rIA5I7qQ/?ref=app