Switching cases
Throughout our course, we talked about Boolean values and how they're treated as flags. We've approached if conditions and seen them in action. In this lecture, we're going to dive into the world of switches. Switches are very similar to if conditions - they just have different rules. Contrary to if conditions that each condition is set separately, switches only look at one variable, one subject. They're not used as commonly as if conditions, yet within they a lot of useful features.
Ready to Level Up Your Skills?
Join thousands of learners on 02GEEK and start your journey to becoming a coding expert today!
Enroll Now for Free!I have only one condition
time to really understand them. In this chapter we dive deep into the world of conditions: if, if else, else if, switchs, cases and more.
00:36
Conditioning to conditions
In this first lecture we're going to revisit that if else condition and understand it without any conditions.
15:00
Integrating else if conditions
The else if condition enables you to have a follow-up condition if your first if condition didn't match.
06:22
Nesting if conditions
This is going to be the first time that we nest if conditions.
05:47
Switching cases
In this lecture we're going to dive into the world of switches.
09:23
Knowing objects instead of conditions
The more you lean on objects and arrays the last conditions your page and applications need.
09:05
This and that or the other thing
So far our if conditions had only one condition in them but in reality we could have a lot more conditions rate in our one if statement.
05:29
Turning around for ternary operators
We're going to be talking about something that isn't mandatory you to know but it's so cool. Ternary operators our shorthand way to create if conditions and they are wicked.
03:13