What is scope & why do we need it?
Scope simply allows us to know where we have access to our variables. It shows us the accessibility of variables, functions & objects in some particular part of the code.
Why would we want to limit the visibility of variables to local / block scope ...
syedminhajhussain.hashnode.dev4 min read