Trying to get an understanding of hoisting in JS and can\'t seem to understand how hoisting and global/local variables are working in this simple function.
let x