Course · Section 8: How JavaScript Works Behind the Scenes · Lecture 96: Scope and The Scope Chain
Implement `outer(x)` that defines an inner function reading `x` from the enclosing scope and returns `x + 10`. Call the inner function and return its result.
+ 1 hidden test run on Submit.
The inner function resolves x through the scope chain to its enclosing function.
Run your code to see results.