Global vs Local Scope in Functions, freeCodeCamp Basic Javascript

Lesson Summary

In this challenge we learn about global vs local scope in functions. It is possible to have both global and local variables with the same name. In a javascript function, the local variable willl always take precedence over the global variable.

Subscribe To Monthly Newsletter. Chance to Win Monthly Prizes

* indicates required