-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
26 lines (18 loc) · 959 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
_ _ _ _ __ _ _ _
__ _(_) |_| |__ _ _| |__ ___ ___ _ __ ___ / /__(_) ___| | _| |_ _ __ ___
/ _` | | __| '_ \| | | | '_ \ / __/ _ \| '_ ` _ \ / / _ \ |/ _ \ |/ / __| '__/ _ \
| (_| | | |_| | | | |_| | |_) | (_| (_) | | | | | |/ / __/ | __/ <| |_| | | (_) |
\__, |_|\__|_| |_|\__,_|_.__(_)___\___/|_| |_| |_/_/ \___|_|\___|_|\_\\__|_| \___/ - M.E.K
|___/
*/
const { driverDatabase, personDatabase } = require("./database");
const emre = personDatabase.findByName("Emre");
const ferdi = personDatabase.findByName("Ferdi");
emre.addFood("Erik", "0,25", "3", true);
ferdi.addFood("Ceviz", "0,10", "5", false);
personDatabase.update(emre);
personDatabase.update(ferdi);
console.log(personDatabase.findByName("Emre"));
console.log();
console.log(personDatabase.findByName("Ferdi"));