JS: static (keyword)
Class method names can be declared with a static keyword in front.
This is called static method.
Static methods are properties of the class constructor function.
Static method is not part of the prototype object. Therefore, object created by the class does not inherit static methods.
// demo behavior of the keyword “static” class Hotdog { static ss(x) { return x; } } // static methods are properties of the class function itself console.assert(Object.hasOwn(Hotdog, "ss")); // call the method console.assert(Hotdog.ss(3) === 3);