+ 1
Explain me pre n post increment n decrement in detail
please help I'm new to JavaScript
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
+ 2
I got it
Bt need a little nore
+ 1
can u please help me again