Javascript equivalent to PHP __construct
The constructor method is a special method for creating and initializing an object created within a class. In other words, it's a function that runs automatically whenever the object is instantiated. Using the constructor method …
Read original article