JavaScript Switch Cases, The Switch Keyword in JavaScript, Codecademy Programming Full Course 2022

Channel:
Subscribers:
7,740
Published on ● Video Link: https://www.youtube.com/watch?v=d1acBtoCFyE



Duration: 6:22
128 views
4


Learn about JavaScript Switch Cases, using The Switch Keyword in JavaScript. A Codecademy Programming Full Course 2022, In this lesson we take a look at a shorter and cleaner way to do conditionals instead of if-else statements, called a switch statement. With a switch statement we get the same functionality as an if-else statement with less code and cleaner looks. We are able to use the switch keyword to provide a value to it and then it will check it against different cases. The case that matches the switch condition will run the code we provide. We are then able to use a break to stop our code after that switch statement runs. We learn that if we do not provide a break, then the code will keep executing other cases until it runs into a break, or all the way down to the default case. The default case will run if all other cases return false. Understanding switch cases is important and is easy when you already understand how if-else statements work. Mastering switch cases and the switch keyword is an epic milestone for beginner programmers and pave the way for creating fancy programs. Learn the switch case to impress potential employers and to show off to your other programming friends. Continue on once you have mastered the switch case in JavaScript programming. JavaScript Switch Cases are awesome to understand and may come in handy in the futrure.




Other Videos By We Will Code


2022-02-22Parameters and Arguments in JavaScript, Passing in Arguments, Providing Parameters, Codecademy JS
2022-02-21Calling a Function in JavaScript Programming, Codecademy's JavaScript Functions Section, JS Guide
2022-02-21Learn JavaScript, Function Declarations Explained, How Function Declarations Work on Codecademy JS
2022-02-21Learn JavaScript, What Are Functions, Codecademy Full Programming Course, JS ES6 Functions Explained
2022-02-21Learn JavaScript Control Flow Quiz on Codecademy, JavaScript Conditional Statements Review, JS Tips
2022-02-21Pokemon Legends Arceus, The Researcher of Myths, Grueling Grove, Defeat Vespiquen, Ancient Retreat 2
2022-02-21Pokemon Legends Arceus, The Researcher of Myths, Grueling Grove, Defeat Vespiquen, Ancient Retreat 1
2022-02-20Learn JavaScript Race Day Explained, Codecademy Programming Walkthroughs, and Tutorial, Conditionals
2022-02-20Program a Magic Eight Ball with JavaScript, Walkthrough for Magic Eight Ball on Codecademy, Learn JS
2022-02-19Conditional Statements Review on Codecademy, Understanding Conditional Logic, Conditionals Explained
2022-02-19JavaScript Switch Cases, The Switch Keyword in JavaScript, Codecademy Programming Full Course 2022
2022-02-18How Else if Statements Work in JavaScript, Else if Statements Explained, Codecademy Programming ES6
2022-02-18How to Use the Ternary Operator in JavaScript, Ternary Operator Explained, Program with Codecademy
2022-02-18Truthy and Falsy Assignment in JavaScript, Short Circuit True False Assignment, Codecademy ES6 JS
2022-02-17Truthy and Falsy in JavaScript Programming, What is Truthy and Falsy in Programming, Codecademy 2022
2022-02-17Understanding JavaScript Logical Operators, Explained JS Logical Operators with Codecademy JS Course
2022-02-17JavaScript Comparison Operators Explained, Learning to Code with Codecademy, JS Programming Lessons
2022-02-17Learn about JavaScript If Else Statements, Understanding Conditional Statements with Codecademy Code
2022-02-17Learn About JavaScript If Statement, Conditional Statements on Codecademy, Program with JavaScript
2022-02-17Understanding What are Conditional Statements in 2022, JavaScript Programming with Codecademy
2022-02-17History of JavaScript Versions, ES6 and Before, JavaScript History Introduction, Codecademy Article



Tags:
Coding
JS
JavaScript
Programming
Tutorials