Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 22abf72

Browse files
author
Parambir Singh
committed
Replace alert() with console.log() in the simple example
1 parent 488d8ea commit 22abf72

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

simple/animals.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
class Animal {
22
constructor(public name) { }
33
move(meters) {
4-
alert(this.name + " moved " + meters + "m.");
4+
console.log(this.name + " moved " + meters + "m.");
55
}
66
}
77

88
class Snake extends Animal {
99
move() {
10-
alert("Slithering...");
10+
console.log("Slithering...");
1111
super.move(5);
1212
}
1313
}
1414

1515
class Horse extends Animal {
1616
move() {
17-
alert("Galloping...");
17+
console.log("Galloping...");
1818
super.move(45);
1919
}
2020
}

0 commit comments

Comments
 (0)