Preparation

<aside> 👀 https://www.youtube.com/watch?v=nItSSTwBvSU or if you are a reading type https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/What_is_JavaScript

</aside>

<aside> 🛠 Test your environment with adding console.log('hello world') to the .js file and refreshing the browser

</aside>

Variable

<aside> 👀 Variables: https://youtu.be/sfqt3ZotOhw Make variable name descriptive: https://youtu.be/0bgIUXj5BF8 Difference of let vs var: https://youtu.be/9yFx81K9b4k

</aside>

<aside> ✏️ add a new line to correct the value stored in the existing myName variable to your own name.

</aside>

let myName = 'Paul';

// add your code here

<aside> ✏️ In this case you are provided with some existing code, which has two errors present in it. The results panel should be outputting the name Chris, and a statement about how old Chris will be in 20 years' time. How can you fix the problem and correct the output?

</aside>

const myName = 'Default';
myName = 'Chris'

let myAge = '42';

// add your code here

// DO NOT change the code below
console.log(`In 20 years, ${myName} will be ${myAge + 20}`);

<aside> ✏️ 1. Create a variable that is 24 times 55 2. Create a const and set it to be equal to your name 3. With javascript console.log the first character in your name 4. Create an array with 3 strings, three numbers and three booleans 5. console.log the 4. element in the array made above 6. Optional: with javascript console.log to print the last character in your name.

</aside>

Data type

<aside> 👀 Data type: https://youtu.be/3LHBAzshGws

</aside>