I have a class with a static method:
class User {
constructor() {
User.staticMethod();
}
static staticMethod() {
}
}
Is there something similar for static methods (i.e. refer to the current class without an instance).
this.staticMethod()
therefore, I do not need to write the class name "User".
Chris source
share