Block scope

Explanation of block scope in JavaScript

Block Scope#

A block scope in JavaScript refers to the scope that exists between blocks of code, such as if blocks or loops.