Static method (Definition)

Defines static methods using function properties you add to a function object.

Static methods are also known as class methods. These are associated with a class rather than an instance of a class. The constructor function is analogous to the factory class for objects in truly object oriented systems.

Static methods have no real use for the this keyword, as it is meant to refer to the receiving instance.

These are called static methods because they are not associated with a local instance.

See also:Function object properties