JSFiddle - React, Tailwind, and code Playground

by adeneo

JavaScript

function A() {
    var that = this;
};

function B() {
    var that = this;

    this.setSize = function (newSize) {
        console.log(newSize)
    }
}

A.prototype = new B();

a = new A();
a.setSize(5);