Two types of Scopes in JS
1: Local Scope
Local scope refers to the context within which variables are declared inside functions or code blocks (e.g., loops, conditionals). Variables declared within a local scope are only accessible within that specific function or block and a...
krishnacool.hashnode.dev1 min read