- 1

Puzzle #2 (easy)

It's just about code reading :) Answer console output :) var x = 1 , y=7; x+=y*=3; if (x<23) console.log ("from right to left"); else console.log("from left to right");

15th May 2017, 7:17 AM
Rose Sevenyears
Rose  Sevenyears - avatar
2 odpowiedzi
+ 5
from right to left (explanation - calculation starts from right to left,and we get x=22. if condition of 22<23 is true,so first output is printed.)
15th May 2017, 7:21 AM
ElricTheCoder
ElricTheCoder - avatar
0
Thought here will be more answers,so first time I decide to wait till other answers,then just forgot it :D Yep,you're right :)
18th May 2017, 9:03 PM
Rose Sevenyears
Rose  Sevenyears - avatar