Constructor
Constructor is a method which is automatically called when the object is initialized. It usually has the same name as the class containing it.
A constructor belongs to a particular class object that is instantiated. The constructor initializes this object and can provide access to its private information. Essentially, a constructor in JavaScript is usually declared at the instance of a class.
Destructor
Destructor is a method which is automatically called when the object is destroyed.