Posts by phb • 531 points
1 post
-
40
votes4
answers1065
viewsA: Is there any way to extend an object in javascript?
You can see the below example of inheritance in which a Dog extends from an Animal and which specifies the "speech" with the bark: And yes This is Javascript, ES6. class Animal { constructor(nome) {…