filmov
tv
JavaScript Switch Statement In 90 Seconds #JavaScriptJanuary

Показать описание
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
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
Комментарии