Conditions

<aside> 👀 Recording for conditions

</aside>

<aside> ✏️ Create an if statement that will give a user a message based on his bank account balance. Use the balance variable and change that.

const balance = 1000;

</aside>

<aside> ✏️ Rewrite this with ternary operator:

let result; if (a + b < 4) { result = 'Below'; } else { result = 'Over'; }

</aside>

Loops

<aside> 👀 Recording for loops

</aside>

How does we make a counter?

<aside> ✏️ Countdown to new year! In this exercise, write a program counting from 10 to 0, when it's 10, print out OMG it started, when it's 0, print out Happy new year! , when it's other number just print out the number. You can decide which type of loop you use.

</aside>

<aside> ✏️ Count by sound You decide to count how many of your friends has letter a in their names. The friend list is ['Chris', 'Anne', 'Colin', 'Terri', 'Phil', 'Lola', 'Sam', 'Kay', 'Bruce'], check each of them and see if the name includes letter 'a' by name.includes('a') (You should go to MDN and check what this means):

</aside>