Skip to content

Commit c47a379

Browse files
a bug (Maximum call stack size exceeded)
fixing getting "wateramount"
1 parent 440f408 commit c47a379

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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)