+ 1
How you define this code ?
var x = 5; var y = x++; alert(x++ + y-) How you define this code ? I mean why the y- = 4? Thank you!
2 Answers
0
line 2 : y is set to 5
(and then increments x to 6)
line3 : y-- decrements y by 1
and x++ increments x to 7
then
alert display the sum 7+4
0
Thanks