Class without ES6: new keyword does 5 things: a. It creates a new object. The type of this object is simply object.
b. It sets this new object’s internal, inaccessible, [[prototype]] (i.e. proto) property to be the constructor function’s external, accessible,
prototype object (every function object automatically has a prototype property).
c. It makes the this…