JSFiddle - React, Tailwind, and code Playground

JavaScript

function Person() {
      this.name = "unnamed";
    }
    
    Person.prototype.sayName = function() {
      console.log("My name is " + this.name);
    }
    
    function Jill() {
      Person.call(this);
      this.name = "Jill";
    }
    Jill.prototype = Object.create(Person.prototype);
    Jill.prototype.constructor = Jill;
    Jill.prototype.expressJoy = function() {
      console.log("Huray!");
    };
    
    var jill = new Jill();
    
console.log(jill instanceof Jill); // false
jill.expressJoy(); // error, is not a function
jill.sayName(); // error, seen if comment out previous line