Implementing inheritance in constructor functions

Kapil Thukral
May 29, 2022

Child.prototype.__proto__ will be Parent.prototype

In the Child’s constructor function make sure to call Parent’s constructor function to imitate super()

class Rabbit extends Animal

__proto__ is being denoted as [[Prototype]]

--

--