Which page?
In the example you have it now (all the code together), the myFn() logs the type of the first myFn function in the global scope.
If you remove the typeof operator, you should see that it logs the first global myFn.
Basically what it does is:
define myFn and createFn in the global scope.
Create a new scope with the closure.
Define a new myFn in the closure.
Execute the global createFn. This changes the scope to the createFn scope.
lookup myFn. It's not in the createFn scope, so it looks it up in the createFn's parent scope: the global scope.
It finds the global myFn.
But anyway, I think Mark meant that you should execute the two cases separately.