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

Conditions

In The heart of every programming language lies a condition. Conditions are just a really important critical vital element of any programmers toolset.

Duration:

54:55

Created with

Ben Fhala

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.

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
Download Source Files