JSFiddle - React, Tailwind, and code Playground

JavaScript

var Mammal = function(name) {
    this.name = name;
};

var Cat = function(name) {
    this.saying = 'meow';
};

Cat.prototype = new Mammal();

Cat.prototype.constructor = Cat;

Cat.prototype.display = function() {
    console.log('I display Cats');
};

//This is what I find hard to digest
Cat.display = function() {
    console.log('I display cats but at the top level');
};


var cat = new Cat('meeow');

// through the instance itself
cat.constructor.display();
// or through the constructor directly
Cat.display();