Skip to content
All paths

Functions & Scope

Scope, closures and the behaviour of this — where most JavaScript confusion lives.

9 posts · about 15 min total

9 posts
  1. 1.Scope, Closure and Lexical Environment

    Scope, Closure and Lexical Environment

    3 min read

  2. 2.Closure in JavaScript.

    What is Closure in JavaScript.

    1 min read

  3. 3.Advantages of Closure in JavaScript

    Closure is a very important and powerful concept in JavaScript.

    1 min read

  4. 4.Closures in async code in JavaScript

    In this article, we will explore how closures work in async code.

    2 min read

  5. 5.Closures and Memory Leaks in JavaScript

    Although closures are a powerful tool, they can sometimes cause memory leaks.

    2 min read

  6. 6.IIFE (Immediately Invoked Function Expressions)

    IIFE (Immediately Invoked Function Expressions) – Why was this needed and why we hardly use it now

    2 min read

  7. 7.this and bind/apply/call methods

    this and bind/apply/call methods in object context in JavaScript

    2 min read

  8. 8.Spread vs Rest operators

    Spread vs Rest operators – how and when to use them

    1 min read

  9. 9.Object Destructuring

    Object Destructuring – how to simplify code

    1 min read