Using JavaScript prototype

IntroductionIn the JavaScript world, objects inherent functionality through prototypal inheritance. An object's prototype acts as a blueprint for its instance. Methods or properties defined at the object's prototype are linked to the object