Understanding Lexical Scope in JavaScript
Introduction
Remember the time when you're writing some code, you try to access an variable but it throws an error that variable is not defined. But you can clearly see that you have defined it and used it multiple times in the function above. That's...
maitrakhatri.hashnode.dev3 min read
Prateek Singh
Software Developer | Technical Content Writer
Your article has cleared my thoughts related to lexical scoping.