Please explain the following | SoloLearn: Learn to code for FREE!

+7

Please explain the following

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

4/27/2019 9:53:08 PM

Tahir Usman

1 Answer

New Answer

+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