JSFiddle - React, Tailwind, and code Playground
by John Schulz
JavaScript
function Primate() {
this.thumbs = 'opposable';
}
function Human() {
this.bipedal = true;
}
Human.prototype = new Primate;
var me = new Human;
console.log(me instanceof Human); // true
console.log(me instanceof Primate); // true
console.log(me.constructor == Human); // false
console.log(me.constructor == Primate); // true