Start learning free

LESSON 35 OF 671 · FUNCTIONS I

Execution Flow: Buggy Code in JavaScript

Practice

We've written a program and expected it to print:

1
2

but we get a different output. Fix our code so that it prints what we want.

STEP 1 OF 1
    Ctrl + Enter to check