Skip to content

Commit 1949082

Browse files
committed
fixed bug in showdogs
1 parent 5d1bc05 commit 1949082

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

chapter13/showdogs.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@
5454
console.log("Stack");
5555
};
5656

57-
ShowDog.prototype.gait = function(kind) {
58-
console.log(kind + "ing");
57+
ShowDog.prototype.bait = function() {
58+
console.log("Bait");
5959
};
6060

61-
ShowDog.prototype.examine = function() {
62-
console.log("Examine");
61+
ShowDog.prototype.gait = function(kind) {
62+
console.log(kind + "ing");
6363
};
6464

6565
ShowDog.prototype.groom = function() {

chapter13/showdogsCleanup.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@
6060
console.log("Stack");
6161
};
6262

63-
ShowDog.prototype.gait = function(kind) {
64-
console.log(kind + "ing");
63+
ShowDog.prototype.bait = function() {
64+
console.log("Bait");
6565
};
6666

67-
ShowDog.prototype.examine = function() {
68-
console.log("Examine");
67+
ShowDog.prototype.gait = function(kind) {
68+
console.log(kind + "ing");
6969
};
7070

7171
ShowDog.prototype.groom = function() {

chapter13/showdogsTester.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@
6060
console.log("Stack");
6161
};
6262

63-
ShowDog.prototype.gait = function(kind) {
64-
console.log(kind + "ing");
63+
ShowDog.prototype.bait = function() {
64+
console.log("Bait");
6565
};
6666

67-
ShowDog.prototype.examine = function() {
68-
console.log("Examine");
67+
ShowDog.prototype.gait = function(kind) {
68+
console.log(kind + "ing");
6969
};
7070

7171
ShowDog.prototype.groom = function() {

0 commit comments

Comments
 (0)