+ 7

Please explain the following

X = 7; y = x++; z = y++%x; alert(z); The answer = 7?

27th Apr 2019, 9:53 PM
Tahir Usman
Tahir Usman - avatar
1 ответ
+ 6
After the first line: x=7 After the second line: y=7 x=8 After the third line: z=7%8 z=7 y=8 And the last line prints 7
27th Apr 2019, 9:55 PM
Dragonxiv
Dragonxiv - avatar