+ 2

What's the output and WHY?

var y = 0; for (var x = 2; x <= 6; x++) { if (x > 4) { y += 2; } y++; } document.write(y)

27th Feb 2018, 5:35 PM
Briaה‎
1 Answer
+ 1
Thanks a lot Jan Markus!
28th Feb 2018, 8:59 AM
Briaה‎