JSFiddle - React, Tailwind, and code Playground

by dhoerster

HTML

Simple Inheritance
<br/><hr/>

JavaScript

function BaseAgile() {
    this.companyName = "AgileWays";
    this.getRevenue = function() { alert('Millions and millions...someday'); };
}

function AgileWays() {   
}

AgileWays.prototype = new BaseAgile();
AgileWays.prototype.showName = function() {
    alert(this.companyName);
};

var myAgile = new AgileWays();
myAgile.getRevenue();
myAgile.showName();