MCPcopy Create free account
hub / github.com/ShivaBhattacharjee/KeyZen / Animal

Class Animal

public/code/javascript/05_classes.js:1–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1class Animal {
2 constructor(name) {
3 this.name = name;
4 }
5
6 speak() {
7 console.log(`${this.name} makes a noise.`);
8 }
9}
10
11class Dog extends Animal {
12 constructor(name, breed) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected