Change "water" to "value" parameter in sample
This commit is contained in:
parent
892c56ac8a
commit
3b97c0ae80
1 changed files with 1 additions and 1 deletions
|
@ -199,7 +199,7 @@ class CoffeeMachine {
|
||||||
*/!*
|
*/!*
|
||||||
|
|
||||||
*!*
|
*!*
|
||||||
#checkWater(water) {
|
#checkWater(value) {
|
||||||
if (value < 0) throw new Error("Negative water");
|
if (value < 0) throw new Error("Negative water");
|
||||||
if (value > this.#waterLimit) throw new Error("Too much water");
|
if (value > this.#waterLimit) throw new Error("Too much water");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue