Static Methods
introduction to static methods in Javascript
Static methods are operations defined on a class. These methods can only be referenced from the class itself, not from objects. Consider the following code:
Level up your interview prep. Join Educative to access 80+ hands-on prep courses.