Scopes in JavaScript. Different types of variable declarations.
You can think of a scope as of a wrapper that contains all the variables and a reference to the parent scope. What does that mean and what should we watch out for when dealing with it? Let’s find out! How scopes work When we try to access a variable in our code, the interpreter […]