Javascript Prototypes and Prototype chaining🧐
Prototypes in Javascript
To understand this let's jump directly to a simple example below-
let details = {
name: "John",
country: "India",
getInfo : function() {
console.log(`My name is ${this.name}. I live in ${this.country}`)
}
}
Ever...
code-craft.hashnode.dev2 min read