Ok so just a quick one... I REAAAAAALLLLY am not understanding scope at all. Do some reason whenever I put a variable inside of a function it's undefined. It seems the only way it works it to declare it OUTSIDE of a function. So what gives? Am I simply misunderstanding the concept of local and global variables? Because it seems global variables are the only ones that work...

Edit:

Simple example...

```
let a = 'something';
function myFunction() {
    // Code block
};

```

This works 

But the following gives me undefined variables:

```
function myFunction() {

    let a = 'something';

    // Code block
};

```