filmov
tv
JavaScript For Beginners #21 The Switch Statement in JavaScript
![preview_player](https://i.ytimg.com/vi/x4TNR_vBMpE/maxresdefault.jpg)
Показать описание
Here, we will learn about the switch statement in JavaScript. This is similar to if/else statements where we control the flow of the program.
0:00 Introduction
0:19 Setting up if/else statements
5:17 Setting up a switch statement
10:48 Switch statement second example
JavaScript Playlist:
From the first example:
const month = new Date().getMonth()
MDN switch statement:
NodeJS:
VS Code:
0:00 Introduction
0:19 Setting up if/else statements
5:17 Setting up a switch statement
10:48 Switch statement second example
JavaScript Playlist:
From the first example:
const month = new Date().getMonth()
MDN switch statement:
NodeJS:
VS Code: