๐Ÿ”ธstatic member

๐Ÿšง under construction

JS โŸฉ value โŸฉ object โŸฉ class โŸฉ member โŸฉ 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