- 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");
2 Answers
+ 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.)
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 :)