We take a look at the switch statement in Javascript together. We see how it can replace certain types of conditional if/else if/else statements. We also look at the different case behaviours like falling-through and the default case.
This is part of a series where we go over Javascript in depth to learn programming concepts as well as web development: • Javascript In Depth
Chapters:
00:00 Introduction
00:27 Switch Statement Intro
05:17 Switch Statement Code Example
08:10 Switch Statement Control Flow
10:00 Default Case
11:56 Default Case Code Example
13:50 Multiple Case Matches
15:45 Multiple Case Match Code Example
18:31 Break Statement
20:02 Break Statement Code Examples
22:28 Next Steps
📦 Github Repository with the notes and exercise code+solutions: https://github.com/Nooder/javascript-...
💬 Come join us on Discord to chat with a like-minded community about tech and learning: / discord
🏅Support the channel and content through Super Thanks, Channel Memberships, or on Patreon: / techwithnader
Auf dieser Seite können Sie das Online-Video Switch Statement - Javascript In Depth mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Tech with Nader 02 November 2022 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 919 Mal angesehen und es wurde von 69 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!