Mark As Completed Discussion

What did you infer from this? There are two important points to be inferred. First, the return value of the scopeCheck() method is in fact another method (the innerScopeCheck() method). The second is that the variable declared in the global scope is available even inside the inner function, but the other way around is not possible. If you try printing the variable innerLocalScope outside the innerScopeCheck() method, it will throw an error.