Berk Safranbolulu (Hepsiburada/Bilgi Teknolojileri)
05/20/2022, 8:26 PMfunction doSomething() {
var age = 7;
// Some more code
}
What are the lexical scope and lexical environment of age
variable? Are they same?
As far as I know, Lexical Scope is the place that is defined any variable, function, or expression. What’s the difference from Lexical Environment?
With this Lexical Scope knowledge, we are able to know which scope can access to age variable, and age variable can access which scope as well. Am I right? What do you think?Timothy Jones
05/21/2022, 4:33 AMTimothy Jones
05/21/2022, 4:34 AMTimothy Jones
05/21/2022, 4:34 AMBerk Safranbolulu (Hepsiburada/Bilgi Teknolojileri)
05/21/2022, 8:44 AM