# What's the output?

```js
var x = 5;

(function() {
  console.log(x);
  var x = 10;
  console.log(x);
})();
```


## Output

```
undefined 10
```

