Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on JavaScript: prototype vs. class. Parent comment
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.
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.