java-script:hoisting
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| java-script:hoisting [2023/08/08 21:32] – odefta | java-script:hoisting [2025/01/02 18:22] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 29: | Line 29: | ||
| ==== Without any keyword ==== | ==== Without any keyword ==== | ||
| - | Variables that are declared without any keyword (such as var, let, or const) are not hoisted. Rather, **they become global variables** (if not already within a global scope), and their declaration and initialization happen at the line where they are assigned. \\ | + | ;;;Variables that are declared without any keyword;;; (such as var, let, or const) |
| Example: | Example: | ||
java-script/hoisting.1691530338.txt.gz · Last modified: (external edit)
