- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
class Animal {
move(distanceInMeters = 0) {
print(`Animal moved ${distanceInMeters}m.`);
}
}
function main() {
const dog = new Animal();
dog.move(10);
const dog2 = Animal();
dog2.move(11);
}