+ 1

Explain me pre n post increment n decrement in detail

please help I'm new to JavaScript

18th Feb 2017, 2:33 PM
Chasing Hunter
Chasing Hunter - avatar
3 Respostas
+ 3
var num=0; document.write(num++); // first prints 0 because firstly num has 0, so it prints..later it does operation increment.. document.write(num);//after increment.. document.write(++num);//increments by 1 and then it prints
18th Feb 2017, 4:07 PM
Manikanth Vanka
Manikanth Vanka - avatar
+ 2
I got it Bt need a little nore
19th Feb 2017, 6:51 PM
Chasing Hunter
Chasing Hunter - avatar
+ 1
can u please help me again
19th Feb 2017, 6:53 PM
Chasing Hunter
Chasing Hunter - avatar