Skip to content

Commit 7e5eb08

Browse files
committed
refactored class.js and this.js, but still getting errors that seem wrong.
1 parent a296079 commit 7e5eb08

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎src/class.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class Cat extends Animal {
5151
this.name = catOptions.name;
5252
}
5353
meow() {
54-
return ('${this.name} meowed!');
54+
return ${this.name} ' meowed!';
5555
}
5656
}
5757

‎src/this.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ const me = new User({
1818
password: 'correcthorsebatterystaple',
1919
checkPassword(passwordToCompare) {
2020
return this.password === passwordToCompare;
21-
};
22-
};
21+
}
22+
}
2323

2424

2525
const result = me.checkPassword('correcthorsebatterystaple'); // should return `true`

0 commit comments

Comments
 (0)