Setting Prototype Object of a Constructor function vs Prototype Object of a Class In JS?
So, I was learning about Prototypes and OOPS concept in javascript. WHile playing around with prototypes, I came across this weird behaviour(weird because I am unaware of the concepts 🙂 ).
The code for the same is as follows: