Static methods belong to the class, not instances. Call them on the class directly.
class MathUtils {
static square(x) {
return x * x;
}
}
console.log(MathUtils.square(5)); // 25
// Not: new MathUtils().square(5)
Static methods are useful for utility functions.