Skip to content

Commit bb33dcd

Browse files
authored
Merge pull request #861 from SherifGhoz/SherifGhoz-patch-1
a bug (Maximum call stack size exceeded)
2 parents caaaf0d + c47a379 commit bb33dcd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • 1-js/09-classes/05-private-protected-properties-methods

1-js/09-classes/05-private-protected-properties-methods/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ class CoffeeMachine {
101101
}
102102

103103
get waterAmount() {
104-
return this.waterAmount;
104+
return this._waterAmount;
105105
}
106106

107107
constructor(power) {

0 commit comments

Comments
 (0)