The answer
Yes. JavaScript moves up the scope chain until it finds the variable or reaches the global scope.
Yes. JavaScript moves up the scope chain until it finds the variable or reaches the global scope.
Browse all our FAQs or reach out to our support team
Your learning library
Find your next course. Build something great.