diff --git a/index.html b/index.html
index 6d34858..cbb0a2a 100644
--- a/index.html
+++ b/index.html
@@ -30,6 +30,7 @@
+
diff --git a/lesson04.md b/lesson04.md
new file mode 100644
index 0000000..fa2d9b3
--- /dev/null
+++ b/lesson04.md
@@ -0,0 +1,377 @@
+
+
+# Basic Frontend - Spring 2024
+
+Lesson 4, Tuesday, 2024-03-26
+
+---
+
+
+### Recap
+
+Name the operators:
+
+```js
+&&
+<
+===
+||
++
+**
+>=
+```
+
+---
+
+### Recap
+
+Name the operators:
+
+```js
+&& // logical AND
+< // less than
+=== // strict equality
+|| // logical OR
++ // addition
+** // exponentiation
+>= // greater than or equal
+```
+
+---
+
+# Recap
+
+| Group | Operators | Example |
+| -------------------- | ---------------------------------- | ---------------------------------------------------- |
+| Numerical Operators | `+` `-` `*` `/` `**` | `5 + 4 * 3`
`7 / 2 - 2`
`"Hello" + " World"` |
+| Comparison Operators | `===` `!==` `<` `>` `<=` `>=` | `30 !== 25`
`20 >= 18` |
+| Logical Operators | ||
`&&` `!` | `true && !false` |
+
+---
+
+
+
+# Conditional Statements
+
+---
+
+### Conditional Statements
+
+Up until now, we wrote code line by line.
+
+But what if I want to run some code only if a certain condition is true or false? For example, only run code when the user is logged in?
+
+![if](https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Building_blocks/conditionals/cookie-choice-small.png)
+
+---
+
+### If statement
+
+```js
+if (condition) {
+ // block of code that
+ // will run ONLY if
+ // condition is true
+}
+```
+
+---
+
+### If statements
+
+```js
+if (condition) {
+ // your code here
+}
+```
+
+* `condition` must be a boolean
+* The code in the block is executed only if the boolean is `true`
+* If the boolean is `false`, the code block is _not_ executed
+
+---
+
+### if Statements - Examples
+
+```js
+if (food === 'pizza') {
+ document.body.textContent = "My favorite food is pizza!";
+}
+```
+
+```js
+if (temperature > 20) {
+ document.body.textContent = "Yay, it's warm again!";
+}
+```
+
+```js
+if (canSpeakFrench) { // same as: canSpeakFrench === true
+ document.body.textContent = "Bonjour!";
+}
+```
+
+---
+
+### if statements - quiz
+
+What does the code below show on the HTML page?
+
+```js
+let language = "German";
+if (language === "German") {
+ document.body.textContent = "Guten Tag";
+}
+if (language === "French") {
+ document.body.textContent = "Bonjour";
+}
+```
+
+`"Guten Tag"`
+
+
+---
+
+### if statements - quiz
+
+What does the code below show on the HTML page?
+
+```js
+let language = "Spanish";
+if (language === "German") {
+ document.body.textContent = "Guten Tag";
+}
+if (language === "French") {
+ document.body.textContent = "Bonjour";
+}
+if (language !== "German" && language !== "French") {
+ document.body.textContent = "Good day";
+}
+```
+
+`"Good day"`
+
+
+---
+
+### Code Blocks: {}
+
+Code blocks contain the code between `{` and `}`, and should be indented for better readability:
+
+```js
+if (language === "German") {
+ // In VSCode, you can indent code by pressing the "Tab" key,
+ // or right-click and choose "Format Document"
+ document.body.textContent = "Guten Tag";
+}
+```
+
+---
+
+### Code Blocks: {}
+
+All variables defined in code blocks only exist inside the block (technical term: “block scope”)
+
+```js
+let name = "John Doe";
+if (name === "John Doe") {
+ let greeting = "Hi dude";
+}
+if (name === "Mary Doyle") {
+ let greeting = "Hello my dear";
+}
+document.body.textContent = greeting; // ERROR!
+```
+
+---
+
+### Code Blocks: {}
+
+Correct solution:
+
+```js
+let name = "John Doe";
+let greeting;
+if (name === "John Doe") {
+ greeting = "Hi dude";
+}
+if (name === "Mary Doyle") {
+ greeting = "Hello my dear";
+}
+document.body.textContent = greeting; // "Hi dude"
+```
+
+---
+
+### Quiz
+
+What does the code below show on the HTML page?
+
+```js
+let food = "broccoli";
+if (food === "pizza") {
+ document.body.textContent = "yum yum";
+}
+```
+
+Solution: Nothing, since the condition in the `if` is `false`
+
+
+---
+
+### Quiz
+
+What does it output?
+
+```js
+let age = 42;
+if (age >= 18) {
+ document.body.textContent = "you are allowed to drive a car";
+}
+if (age < 18) {
+ document.body.textContent = "you are not allowed to drive a car";
+}
+```
+
+Solution: First condition is `true`, so it outputs "you are allowed to drive a car"
+
+
+---
+
+# Task
+
+Define a variable `hour` and set it to `17`. Make an `if` statement that outputs `good day` to the body of your page, if `hour` is less than 18.
+
+Now change `hour` to `19` and run the code again. What changed?
+
+
+---
+
+# Task
+
+Harald invented a game where the player with the highest score wins. The score is the player's height (in cm) plus five times the player's age.
+
+1. Create variables for the heights and ages for you and a person next to you
+1. Calculate the scores for you and your neighbor
+1. Decide who wins, output the winner and their score to the `body` of your HTML. Remember: there can be a draw (both players with the same score).
+
+
+
+---
+
+### console.log()
+
+We need a way of printing information to the console when our code runs, for debugging purposes:
+
+```js
+let name = "Owen";
+console.log(name);
+let shouldSayHello = true;
+if (shouldSayHello) {
+ console.log("Hello");
+}
+```
+
+---
+
+### If-Else
+
+Very often, we would like to conditionally execute something, and otherwise execute something else:
+
+```js
+if (budget >= 60) {
+ console.log("Let's go to cinema!");
+}
+if (budget < 60) {
+ console.log("Let's go to the park!");
+}
+```
+
+---
+
+### If-Else
+
+```js
+if (condition) {
+ // some code
+ // will execute if condition is true
+} else {
+ // other code
+ // will execute if condition is false
+}
+```
+
+---
+
+### If-Else
+
+```js
+if (budget >= 60) {
+ console.log("Let's go to cinema!");
+} else {
+ console.log("Let's go to the park!");
+}
+```
+
+---
+
+### Quiz
+
+Can you change the following code to `if..else`?
+
+```js
+if (temperature > 25) {
+ console.log("Go swimming");
+}
+if (temperature <= 25) {
+ console.log("Go biking");
+}
+```
+
+---
+
+### Solution
+
+```js
+if (temperature > 25) {
+ console.log("Go swimming");
+} else {
+ console.log("Go biking");
+}
+```
+
+---
+
+But what if we want to check multiple exclusive conditions?
+
+---
+
+### If...Else-If...Else example
+
+```js
+if (day === 'Saturday') {
+ console.log('Do all the shopping.');
+} else if (day === 'Sunday') {
+ console.log('Relax!');
+} else {
+ console.log('Wake up and go to work!');
+}
+```
+
+Only one code block is executed in the `if..else if..else`. To determine which block, JavaScript will evaluate the conditions from top to bottom. The first condition that evaluates to true determines the block to be executed. All the other code blocks are ignored.
+
+---
+
+You can use [code-to-graph](https://crubier.github.io/code-to-graph/?code=aWYgKGRheSA9PT0gJ1NhdHVyZGF5JykgewogIGNvbnNvbGUubG9nKCdEbyBhbGwgdGhlIHNob3BwaW5nLicpOwp9IGVsc2UgaWYgKGRheSA9PT0gJ1N1bmRheScpIHsKICBjb25zb2xlLmxvZygnUmVsYXghJyk7Cn0gZWxzZSB7CiAgY29uc29sZS5sb2coJ1dha2UgdXAgYW5kIGdvIHRvIHdvcmshJyk7Cn0) for visualization:
+
+![if-else](images/if-else.svg)
+
+---
+
+### Task
+
+* Describe the weather based on the temperature:
+ * Above 30
+ * Above 20
+ * Above 5
+ * Everything else
diff --git a/toc.md b/toc.md
index 54b7695..39172e0 100644
--- a/toc.md
+++ b/toc.md
@@ -2,8 +2,9 @@
1. [Basic Data Types and Operators](#basic-data-types)
1. [Variables](#variables)
+2. [Conditionals](#if)
-Direct link to lessons: [1](#lesson1) [2](#lesson2) [3](#lesson3)
+Direct link to lessons: [1](#lesson1) [2](#lesson2) [3](#lesson3) [4](#lesson4)
NOTE: when we have too many entries that don't fit on one screen we can use this