🔸static member

🚧 under construction

JSvalueobjectclassmember ⟩ static

class A {
  // ⭐️ staic members
  static a;                 // A.a = undefined
  static b = 0;             // A.b = 0
  static get c() { ... }    // A.c   (static getter)
  static d() { ... }        // A.d() (static method)
  
  // ⭐️ private static members (# means "private")
  // (accessable only within the class body)
  // (private members are not inherited)
  static #e;                // A.#e
  static get #f() { ... }   // A.#f
  static #g() { ... }       // A.#g()
}

Last updated