JSFiddle - React, Tailwind, and code Playground
JavaScript
// e.g. Object
Super = function() {};
Super.prototype = { property: "value" };
// e.g. Window
Sub = function() {};
Sub.prototype = new Super();
// e.g. window
instance = new Sub();
console.log(Object.getOwnPropertyDescriptor(instance, 'property'));
instance.property = 6;
console.log(Object.getOwnPropertyDescriptor(instance, 'property'));