Prototypes in JavaScript
Before we start with Prototypes, we need to understand Object Constructors.
Let's take an example,
We are playing a game and we need to store name and age of players, So, how to do that
First way is to create separate name and age variables for ea...
devwithavatar.hashnode.dev6 min read