Class Inheritance in JavaScript
//Inheritance from ourselves
class Thinker {
constructor(name, thought) {
this.name = name
this.thought = thought
}
display() {
console.log(this.name)
}
}
class Doer extends Thinker {
constructor(name, tho...
vasudhawankhade.hashnode.dev1 min read