Understanding Scope in Javascript
Scope in js
If you'd like to code in JavaScript, understanding the scope of variables is a must.
So before understaning what is scope lets see some code snippets and examples so that we can understand scope in a better way
const a=1;
console.log(a); ...
suryxks.hashnode.dev4 min read