• Skip to primary navigation
  • Skip to content
  • Skip to footer
W3HTech Blog
  • Home
  • About
  • Categories
  • Archives

    Javascript Closures

    August 17, 2012 less than 1 minute read

    A closure is a special kind of object that combines two things: a function, and the environment in which that function was created. The environment consists of any local variables that were in-scope at the time that the closure was created.

    https://developer.mozilla.org/en-US/docs/JavaScript/Guide/Closures

    Categories: JavaScript

    Updated: August 17, 2012

    Share on

    X Facebook LinkedIn Bluesky
    Previous Next

    You May Also Enjoy

    Configuring the Starship Prompt for Bash

    August 1, 2026 2 minute read

    Starship is a minimal, fast, and highly customizable shell prompt written in Rust. It works the same way across Bash, Zsh, Fish, PowerShell, and more, so you...

    What is a side effect in JavaScript?

    October 9, 2020 less than 1 minute read

    A side effect is any application state change that is observable outside the called function other than its return value. For example modifying any external...

    What is a Monorepo?

    September 30, 2020 less than 1 minute read

    Monorepo, is a single repository which contains more than one logical project like a web application and its iOS application.

    Dependency Injection in JavaScript

    September 29, 2020 less than 1 minute read

    Dependency Injection is a pattern where instead of creating or requiring dependencies directly inside a module, we pass them as paramaeters or reference.

    • Feed
    © 2026 W3HTech Blog. Powered by Jekyll & Minimal Mistakes.