Easy JavaScript - The Switch Statement (21)

preview_player
Показать описание

The switch statement works very similar to the if...else statement, in that it looks at some data and a specific piece of code is triggered based on whatever condition that's met. The switch statement may be easier for some of you in certain cases so it's extremely useful to know.

I hope you enjoy the video and if you have any questions, please ask in the comments below. If you have any requests feel free to let me know. Thanks for watching and remember to subscribe!

-----------

Рекомендации по теме