0

I am currently reading Eloquent JS and I understand how Lexical scoping works but I would like to know why do we use it? And what are the practical implications of it?

Divij
  • 1
  • 1
  • 3
    `why do we use it?` - because it's how javascript is written - it's like asking "why do we use `return` to return from a function?" because chuzzwuzzah would be a stupid operator name :p – Jaromanda X Oct 05 '17 at 07:37
  • 3
    Possible duplicate of [What is lexical scope?](https://stackoverflow.com/questions/1047454/what-is-lexical-scope) – Thilo Oct 05 '17 at 07:38
  • Are there any practical implications for this? None of you answered nor did "What is lexical scope?" – Divij Oct 05 '17 at 09:02

0 Answers0