← Back to Examples

Control Flow

1. If / Else Statement

Enter an age and click the button...

2. Ternary Operator

Enter a score and click the button...

3. Switch Statement

Select a day and click the button...

4. For Loop

Enter a number and click the button...

5. While Loop

Click a button to see the loop in action...

6. For...of and For...in

Click a button to see the difference...

7. Break and Continue

Click a button...

8. FizzBuzz Challenge

The classic programming interview question!

← Back to Examples