Thanks for pointing those out.
Samer Buna
21

you are spot on with execution context but still i disagree with lexical environment . lexical means as per the location of variables within source code. it is an author time decision which we created at the writing time . as per compilation is concerned js file is compiled every time it’s run . so at compilation , engine knows which is where , which variable in which scope . what is accessible and what’s not . it doesn’t happen during execution . execution phase is a microsecond late than the compilation phase . when we run a program , compilation and then execution . Thanks :)

Like what you read? Give ajaytanwar a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.