Block and shadowing in javascript
Block
Referring to is grouping multiple statements together inside a block (curly braces {}) in JavaScript.
This is often done when JavaScript expects a single statement but you want to execute multiple statements in that context
Example:
if (true) {...
sujaynitrr.hashnode.dev2 min read