3.15 Listing Notes

Implement getAll

var getAll = () => {
return fetchNotes();
};
} else if (command === 'list') {
var allNotes = notes.getAll();
console.log(`Printing ${allNotes.length} note(s).`);
allNotes.forEach((note) => notes.logNote(note));
Printing 2 note(s).
--
Title: to buy
Body: food
--
Title: to buy from store
Body: food