Files

7 lines
477 B
Markdown
Raw Permalink Normal View History

2026-06-12 11:06:50 +02:00
# Function
Function scope means a variable declared inside a function is only accessible within that function. Variables declared with `var` are function-scoped. Each function call creates a new scope, so variables inside a function do not conflict with variables of the same name in other functions.
2023-01-02 04:47:46 +04:00
Visit the following resources to learn more:
2026-06-12 11:06:50 +02:00
- [@article@Function Scope & Block Scope in JS](https://medium.com/nerd-for-tech/function-scope-block-scope-in-js-d29c8e7cd216)