Prototypes In JavaScript
What is Prototype ?
Prototype in JavaScript is an object from which other objects can inherit the properties and methods.
for example
const myObject = {
city: "Madrid",
greet() {
console.log(`Greetings from ${this.city}`);
},
};
Object.get...
neeltyper001.hashnode.dev3 min read