FREELessons: 65Length: 7.1 hours

• Overview
• Transcript

4.2 Switch Statements

Similar to an if is the switch statement, which allows us to take a different code path based on the value of something. I’ll show you how it works in this lesson.

Syntax

• switch
• case
• break
• default