Conditions
Duration: 54:55
Created with
Ben Fhala
Ben Fhala is the creative force and founder behind 02geek, a pioneering platform dedicated to making web development accessible to everyone. With over 18 years of experience in the industry, Ben has a deep passion for teaching and a knack for breaking down complex concepts into easy-to-understand lessons.
Conditions Overview
What you'll learn
This whole chapter is dedicated to conditions. We've met conditions previously but we haven't dedicated enough 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.
Conditions are crossroads in our code. In many ways conditions are just like intersections, or more accurately delights in an intersection. Conditions help us steer directions in different ways helping us to create unique experiences for users that change as conditions change.
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.
Conditioning to conditions
In this first lecture we're going to revisit that if else condition and understand it without any conditions.
Integrating else if conditions
The else if condition enables you to have a follow-up condition if your first if condition didn't match.
Nesting if conditions
This is going to be the first time that we nest if conditions.
Switching cases
In this lecture we're going to dive into the world of switches.
Knowing objects instead of conditions
The more you lean on objects and arrays the last conditions your page and applications need.
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.
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.
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!