🌎
web.dev
Ctrlk
  • 🌏web.dev
  • ⚙️tools
  • 🔰HTML
  • 🔰CSS
  • 🍒JS
    • 💡tips
    • 🧚technique
    • ⭐feature
    • 🔰concept
    • 🔰compilation
    • 🔰grammar
    • 🔰scope
    • 💍value
      • 🔰type
      • 🦠primitive
      • 🍄object
      • 🍄function
        • 🔰creating functions
        • 🈯function declaration
        • 🔰function expression
        • 🔰arrow function
        • 🔰closure
          • ❗scopes matter with closures
          • 💡private property by closure
          • ✨closure examples
            • ✨closure: to close over or not
            • ✨closure: manage grades
            • ✨closure as object
        • 🌿sorts of function
        • 🔰function boundary
        • 🔰function overloading
        • 🔰function forwarding
        • 🔸return value
        • 🔸function name
        • ⚖️parameter vs. argument
        • 🔸argument
        • 🔸parameter
        • 🔸prototype
        • 🔹constructor
      • 🍄class
      • 📘built-in objects
    • 🔰variable
    • 🔰module
    • 🔰iteration
    • 🔰async code
    • 🔰debugging
    • ⛔Error
    • 🏛️Libraries
    • 🛠️tools
    • ✨examples
    • 💼projects
  • 🔰web component
  • 🌐browser
  • 🔰React
  • Server
  • 🔖附錄
    • 👔custom
    • 🧩three.js
    • 🅰️Google Apps Script
    • 📖JSDoc
    • 📦data structure
    • 🔰algorithm
    • 🔰paradigm
    • 🔰TypeScript
    • 💎resource
Powered by GitBook
On this page

Was this helpful?

  1. 🍒JS
  2. 💍value
  3. 🍄function
  4. 🔰closure

✨closure examples

JS ⟩ value ⟩ function ⟩ closure ⟩ examples

  • private property by closure

  • scopes matter with closures

  • closure: to close over or not❓

  • closure: manage grades

  • closure as object - closure can be used as an object.

Previousprivate property by closureNextclosure: to close over or not

Last updated 3 years ago

Was this helpful?