Global Scope and Functions
Summary
- Scope refers to the visibility of variables.
- Variables with a global scope can be accessed anywhere using JavaScript code.
- Variables which are declared without the var keyword are automatically created in the global scope.
Final Code