JSFiddle - React, Tailwind, and code Playground

JavaScript

function Parent( a ) {
    this.a = a;
}

Parent.prototype.func1 = function () {};

function Child( a, b ) {
    Parent.call( this, a );
    this.b = b;
}

Child.prototype = Object.create( Parent.prototype );
Child.prototype.constructor = Child;

Child.prototype.func2 = function () {};

var p, c;
p = new Parent( 1 );
c = new Child( 2, 3 );

console.dir( p );
console.dir( c );