Unlike let/const, a var declaration is scoped to the nearest function, not to the nearest block. It leaks out of if/for/while blocks.
Challenge: Write varFunctionScope() that:
var leaked = 'yes' inside an if (true) { } blockleaked from outside the block (it should still be accessible)