JSFiddle - React, Tailwind, and code Playground

JavaScript

function PlayerAdapter(config) {
        console.log("aaa");
        this.config = config;
    }

    // Flash adapter
    function FlashAdapter(config) {
        console.log("bbb");
        // call parent constructor
        PlayerAdapter.call(this, config);
    }
    FlashAdapter.prototype = new PlayerAdapter();

    var foo = new FlashAdapter({
        "foo": "name"
    });