function Base() {
    this.a = 100
}
function Derived() {
    Base.call(this)
    this.b = 200
}

Object.setPrototypeOf(Derived.prototype, Base.prototype);

log = console.log

log(new Base())
log(new Derived())
    

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: