example

Looking at scope in javascript.

output