Skip to content
Open
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const drugs = [
new Drug("Doliprane", 20, 30),
new Drug("Herbal Tea", 10, 5),
new Drug("Fervex", 5, 40),
new Drug("Magic Pill", 15, 40)
new Drug("Magic Pill", 15, 40),
];
const trial = new Pharmacy(drugs);

Expand All @@ -16,7 +16,7 @@ for (let elapsedDays = 0; elapsedDays < 30; elapsedDays++) {
}

/* eslint-disable no-console */
fs.writeFile("output.txt", log.toString(), err => {
fs.writeFile("output.txt", log.toString(), (err) => {
if (err) {
console.log("error");
} else {
Expand Down
Loading