News

Backup for my blogs written on Hashnode. Contribute to maitrakhatri/myBlogs development by creating an account on GitHub.
Lexical scope simply means the other scopes have access to the variables defined in outer scopes. Let’s see it with an example: That looks stranger than what it is, so let’s explain it.
Answer: JS uses Lexical Scoping, which means that scoping is controlled by the physical placement of functions and blocks in the code. Answer:only variables declared with let or const are restricted ...