DEV Community

Discussion on: Guess the output of this JS code

Collapse
 
thiennguyen1tiki profile image
thien-nguyen1

10, 9, 8, 7, 6
for loop stop when num = 5, ( every console.log in for decrease num for 1 )

Collapse
 
0shuvo0 profile image
Shuvo

right