02Geek HTML5 and JavaScript, TypeScript, React, Flash, ActionScript online School
Previous VideoNext Video

Nesting if conditions

This is going to be the first time that we nest if conditions. I advise you to try hard to avoid nesting conditions. The more nested things there are, the more complicated they are. With that said, nesting conditions could be incredibly powerful and useful in certain situations. I deliberately waited to talk about the topic at this late stage as I wanted you to avoid using them in general. My tip for you is every time you want to use a condition, ask yourself can I do without it?

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