Skip to content

Commit bb33dcd

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

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

+1-1
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)