9 topics · 0/9 read
JavaScript Part 1
Fundamental JavaScript concepts including typing, scoping, execution context, and functional programming
Static vs Dynamic Typing
Typing systems in programming define how variables are declared and how their types are handled during code execution. Static typing and dynamic typing represent two different approaches to type-checking in programming l
Read nowlet, var, and const (Difference in Scopes)
In JavaScript, variable declarations are handled using let, var, and const. Each has its own scope rules and use cases, influencing how variables are managed in the code.
Read nowFunctional Scopes
Functional scope is the area in code where a variable is accessible. In JavaScript, variables declared with var are function-scoped, limiting their access to the containing function.
Read nowCallback Functions and Higher-Order Functions
Functions in JavaScript can be passed as arguments or returned from other functions. Callback functions and higher-order functions make this possible, providing powerful tools for asynchronous programming.
Read nowGlobal Execution Context
The Global Execution Context (GEC) is the default execution context in JavaScript. It is created when the JavaScript code is executed and manages global variables, functions, and objects like window or global.
Read nowFunctional Execution Context
A Functional Execution Context (FEC) is created whenever a function is invoked. It handles the function's variables, parameters, and inner functions.
Read nowHoisting and Temporal Dead Zone (TDZ)
Hoisting refers to the process where variable and function declarations are moved to the top of their scope during the creation phase. The Temporal Dead Zone (TDZ) is the period between entering a scope and declaring a v
Read nowClosures and Lexical Scoping
A closure is formed when an inner function retains access to variables in its outer scope, even after the outer function has returned. Lexical Scoping determines how variable names are resolved based on the location of t
Read nowIIFE and Function Currying
IIFE(Immediately Invoked Function Expression) and currying are functional programming concepts. An IIFE is a function executed immediately after its declaration. Currying transforms a function with multiple arguments int
Read now