MCPcopy Create free account
hub / github.com/CodeWithHarry/Sigma-Web-Dev-Course / Animal

Class Animal

Video 80/script.js:18–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16// rabbit.__proto__ = animal; // sets rabbit.[[Prototype]] = animal
17
18class Animal{
19 constructor(name){
20 this.name = name
21 console.log("Object is created...")
22 }
23
24 eats(){
25 console.log("Kha raha hoon")
26 }
27 jumps(){
28 console.log("Kood raha hoon")
29 }
30}
31
32
33class Lion extends Animal {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected