What is lexical this in JavaScript?
Answers
Answered by
0
Lexical Scoping. First off, JavaScript has lexical scoping with function scope. In other words, even though JavaScript looks like it should have block scope because it uses curly braces { }, a new scope is created only when you create a new function. ... The scope of variables is defined by their position in source code.
Similar questions