JavaScript Switch Statement In 90 Seconds #JavaScriptJanuary

preview_player
Показать описание
Watch the entire #JavaScriptJanuary series from the beginning!

The switch statement is used to perform different actions based on different conditions.

First the switch expression gets evaluated. Then the value of the expression is compared with the values of each case. If there is a match, the associated block of code is executed. If there is not a match then the default block of code will run.

When JavaScript reaches a break keyword, it breaks out of the switch block. Note that if you omit the break statement, the next case will be executed even if the evaluation does not match the case.

I'll be releasing a new video every day in January! Stay tuned..
_____________________________________

📚 Learn to CODE in just a FEW months here:
_____________________________________

🛠️ Tools I use:

_____________________________________

💖 Show support!
_____________________________________

Watch Next:
_____________________________________

Connect With Me:
_____________________________________

** Affiliate Disclaimer: Some of the above links may be affiliate links, which may generate me a sales commission at no additional cost to you.

#JavaScriptJanuary #31Days31Videos #codeSTACKr
Рекомендации по теме
Комментарии
Автор

Thanks for all of the support! Stay tuned for a new video every day in January!!

Watch the entire #JavaScriptJanuary series from the beginning!

📚 My Favorite Web Design Books 📚
Web Design with HTML, CSS, JavaScript and jQuery Set by Jon Duckett (paid link)

codeSTACKr
Автор

Nice, it worths to watch the video even if you are not n00b. It shows how to run a code block when multiple cases occur.

dimitrisandroid
Автор

After watching this video got to know something new about switch statements..I like it..

rajeshsahu
Автор

Short and to the point as fast as possible..good work i am a subscriber

sushantdhakal
Автор

Thanks, keep making short videos. Hope your works will go to waste :)

KamalHossain-rnox