JSFiddle - React, Tailwind, and code Playground

JavaScript

function A() {}

function B() {
    "use strict";
    this.name = "Class B";
}
B.prototype = A;

try {
    var b = new B();
} catch(e) {
    alert(e);
}