Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions mandatory/2-water-bottle.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,20 @@ if (!bottle.isEmpty()) {
}

// ACTIONS
bottle.pour();

// CHECKS
if (bottle.volume === 50) {
console.log(`That's correct! Water volume is ${bottle.volume}.`);
} else {
failed = true;
console.warn(
`Not quite right! Water volume should be 50 unit instead of ${bottle.volume}.`
);
}

// ACTIONS
bottle.drink();
bottle.drink();
bottle.drink();
bottle.drink();
Expand Down