static and non-static (js)

ref – https://medium.com/@yyang0903/static-objects-static-methods-in-es6-1c026dbb8bb1

Static methods, like many other features introduced in ES6, are meant to provide class-specific methods for object-oriented programming in Javascript.

Static methods are often used to create utility functions for an application.

Static methods are called without instantiating their class…

thus, when we call static “triple”, you will won’t see the log in the constructor executed.

Static methods…are also not callable when the class is instantiated.

Since these methods operate on the class instead of instances of the class, they are called on the class.

Say we have a subclass to a parent class, any static methods that we declared are available to the subclasses as well