Skip to content

Commit c8ead41

Browse files
authored
contents: difference between global scope, function scope, and block scope (#17)
1 parent 90fc3fe commit c8ead41

File tree

1 file changed

+1
-0
lines changed
  • questions/explain-the-difference-between-global-scope-function-scope-and-block-scope

1 file changed

+1
-0
lines changed

questions/explain-the-difference-between-global-scope-function-scope-and-block-scope/en-US.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ function myFunction() {
1717
}
1818
// console.log(blockVar); // Uncaught ReferenceError: blockVar is not defined
1919
}
20+
// console.log(functionVar); // Uncaught ReferenceError: functionVar is not defined
2021
```
2122

2223
---

0 commit comments

Comments
 (0)