JavaScript Class static
JavaScript Class static
The static keyword is used to define static methods for classes. It is called directly on the class without the need of creating an instance or object of the class.
Syntax:-
Its syntax is:- static methodName()