static
static is a JavaScript function in the Class category. Defines a static method. The syntax is static methodName(). A typical example: class Utils { static add(a,b) { return a+b } }. A close sibling is class, which defines a class. A close sibling is constructor(), which creates class instances. A close sibling is extends, which inherits from another class. A close sibling is super(), which calls parent constructor. More about this category: Class syntax. Related Class methods: class, constructor(), extends, super(), new.target. This page is part of the free JS Reference documentation covering 1027+ methods, each with syntax, parameters, return values, examples, and common pitfalls. You can try static immediately in the JavaScript playground, look up unfamiliar terms in the glossary, or return to the JS Reference homepage.