JavaScript Simplified Course: https://javascriptsimplified.com
The switch statement is a really underutilized syntax that can drastically clean up specific long if else statements by making them easier to read and use.
???? Materials/References:
JavaScript Simplified Course: https://javascriptsimplified.com
JavaScript Scope Video: https://youtu.be/TkFN6e9ZDMw
JavaScript Scope Article: https://blog.webdevsimplified.com/2022-10/js-scoping
???? Find Me Here:
My Blog: https://blog.webdevsimplified.com
My Courses: https://courses.webdevsimplified.com
Patreon: https://www.patreon.com/WebDevSimplified
Twitter: https://twitter.com/DevSimplified
Discord: https://discord.gg/7StTjnR
GitHub: https://github.com/WebDevSimplified
CodePen: https://codepen.io/WebDevSimplified
⏱️ Timestamps:
00:00 - Introduction
00:30 - Code Demo
01:08 - Switch Statement Basics
04:45 - Matching Multiple Cases
05:59 - Common Mistakes
#SwitchStatement #WDS #JavaScript