JSFiddle - React, Tailwind, and code Playground
by Ben Watts
JavaScript
function Cat(name, color) {
this.name = name
this.color = color
}
Cat.prototype.age = 3;
var fluffy = new Cat('Fluffy', 'White');
alert(fluffy.hasOwnProperty('age'));
alert(Cat.hasOwnProperty('age'));