#23 How to use the Switch Statement | JavaScript Full Tutorial

preview_player
Показать описание
In this lesson let's learn all about the Switch statement, the Switch statement takes a single value, and then looks through a list of choices (called cases), until a case that matches the value is found. Each case has it's own corresponding code that will be executed if there is a match.

------------------



------------------




------------------
Learn with Dev Dreamer! Step by step, easy to understand tutorials :-)
Рекомендации по теме
Комментарии
Автор

Great 👍 lesson on switch. I don't know why these videos didn't get more views. Your videos much better than other JavaScript tutorials. You have given 2 or more examples and also task/challenges to think on topic but others not. This teaching approach is so helpful for learning coding. 👍

mahbuburrahman
Автор

Have to comment after watching video, you deserve more. Awesome video :3

dzajakeks
Автор

curious why this time the key was `favFood` and not `true`? I used `true` and it worked the same, but I'm wondering if I'm just not completely understanding the difference between using the variable as the key or `true`.

Noizeproxy
Автор

what is the correct format?
switch() //without a space
or
switch () //with a space between them

getting confused because some tutorials have space and others don't.

r
Автор

this was totally fantastic the only problem came while i was writing a template literal . I dont know why my VsC does like that especially it turns it into a string if i use the abbreviation

badbrother_
Автор

I would want to know why have you stopped making videos.

motivationnation