JavaScript Execution Context Explained: GEC vs FEC

Day 1 Js Depth Topic: JavaScript Execution context. - Execution Context is a special environment created when JavaScript code is evaluated and executed. There are two types of execution content: 1. GEC (Global execution context) - everything written outside the functions are are stored here for execution -like: 1.variable 2.function test 2. FEC (Function execution context) - created when functions are called for execution - with this we can call the js function before it even exists. - it is like calling your own box 🎁. finally it contains: 1. Variables 2. Functions 3. Scope 4. this keyword next will be the Scope chain 😄 stay tune with me in this journey. if I write anything wrong you can correct me. here to learn more

To view or add a comment, sign in

Explore content categories