* refactor: clean to roadmap content * refactor: move shared helpers into scripts/lib
410 B
410 B
Block
Block scope limits a variable's visibility to the block of code enclosed in curly braces {} where it is declared. Variables declared with let and const are block-scoped. A variable inside an if statement or for loop with block scope is not accessible outside that block.
Visit the following resources to learn more: