Skip to main content

9 topics · 0/9 read

JavaScript Part 1

Fundamental JavaScript concepts including typing, scoping, execution context, and functional programming

  1. 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 now
  2. let, 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 now
  3. Functional 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 now
  4. Callback 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 now
  5. Global 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 now
  6. Functional 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 now
  7. Hoisting 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 now
  8. Closures 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 now
  9. IIFE 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