DEV Community

Discussion on: Guess the output of this JS code

Collapse
 
fjones profile image
FJones

Output (i/num after iteration):
10 (1/9)
9 (2/8)
8 (3/7)
7 (4/6)
6 (5/5) - loop terminates as !(i < num).