JSFiddle - React, Tailwind, and code Playground
by Ishank Dubey
JavaScript
function Person (name, city) {
this.name = name;
}
Person.prototype.age = 25;
const willem = new Person('Willem');
console.log(willem.__proto__ === Person.prototype); // the __proto__ property on the instance refers to the prototype of the constructor
console.log(willem.age);
willem.age1 = 100;
console.log(willem.age1);