I came across this while learning more about JavaScript and its behavior.
With the below function my question are