4 ms·
> - you can have static methods IMO create a class in Javascript and adding a static method is the opposite of simplify things. The simple way of doing it wou
by grouchoboy 8y ago
> - you can have static methods
IMO create a class in Javascript and adding a static method is the opposite of simplify things.
The simple way of doing it would be create a function in a module.
For me the use of static methods in languages like Java is a workaround. But it Javascript that workarount is not necessary.