Update global@oC4o6GLEES_nUgCJu9Q6I.md (#6683)

* Update global@oC4o6GLEES_nUgCJu9Q6I.md

Provide additional details

* Update src/data/roadmaps/javascript/content/global@oC4o6GLEES_nUgCJu9Q6I.md

---------

Co-authored-by: dsh <daniel.s.holdsworth@gmail.com>
pull/6750/head
Sarkis Kovlekjian 7 months ago committed by GitHub
parent 7f776808df
commit 164baba193
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      src/data/roadmaps/javascript/content/global@oC4o6GLEES_nUgCJu9Q6I.md

@ -2,6 +2,11 @@
Variables declared Globally (outside any function) have Global Scope. Global variables can be accessed from anywhere in a JavaScript program. Variables declared with `var`, `let` and `const` are quite similar when declared outside a block. Variables declared Globally (outside any function) have Global Scope. Global variables can be accessed from anywhere in a JavaScript program. Variables declared with `var`, `let` and `const` are quite similar when declared outside a block.
### Note:
If you assign a value to a variable that has not been declared i.e `potato = true`
it will automatically become a _GLOBAL_ variable.
Visit the following resources to learn more: Visit the following resources to learn more:
- [@article@JavaScript Scope](https://www.w3schools.com/js/js_scope.asp) - [@article@JavaScript Scope](https://www.w3schools.com/js/js_scope.asp)

Loading…
Cancel
Save