News for hackers. Stuff that matters.
Re:JavaScript: prototype vs. class by grouchoboy on Wednesday April 04, 2018 @11:32AM (#16755666)
> - 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.

There are no comments on this comment yet.