JSFiddle - React, Tailwind, and code Playground
JavaScript
function a() {}
function b() {}
function c() {}
b.prototype = new a();
c.prototype = new b();
console.log((new a()).constructor); //a()
console.log((new b()).constructor); //a()
console.log((new c()).constructor); //a()
console.log(Object.getPrototypeOf(new a())); //a{ }
console.log(Object.getPrototypeOf(new b())); //a{ }
console.log(Object.getPrototypeOf(new c())); //a{ }
console.log(new a() instanceof a); //true
console.log(new b() instanceof b); //true
console.log(new c() instanceof c); //true