definition and Type of execution context | code execution , callstack and hoisting in Javascript | Interview manthan
Top 3 JavaScritp Interview Question Execution context : It is an environment where javascript code is executed. Here environment is referring to this, variable,objects,function etc is accessiable at perticular time. Example : It could be like a container where everything a task that we perform by javascript will take place. Type of execution context: There are two two types in execution context. Globle execution context : It is globle context where every code and its referrence is present and there is only one globle executionl context in javascript. when page is load it is the first thing to load on callstack(defined below). Functional/local execution context : It is local context of a code where it's code is accessible.Code inside the function will avaible for itself and child funtion/local scope. There are two phase of execution context: When page is load js engine will not perform task directly on the variables,objects etc. The process is dived in two p...