Day 3: Logic
Lesson 0: Intro
We've spent a lot of time fleshing out data and how it can be created (
let), how it can be grouped (arrays, sets etc) and changed (
However we've not looked at how we can take that data and make decisions with it, like if the temperature is above a certain level can we notify our user in someway so they know to turn on the air con.
Well today we are going to look at logic and conditionals. We will cover:
- If Else
- If, Else if, Else
And finish up with the weather based app, where we tell the user what to wear based on weather conditions.