Hey,
So I am getting the answer correct, but there is one item I don’t understand.
prepareTea()??? what is that… how did it come about? I thought it would be
prepareGreenTea() and prepareBlackTea();
how was Green and Black omitted… and how is it a method?
…
const prepareGreenTea = () => ‘greenTea’;
const prepareBlackTea = () => ‘blackTea’;
const getTea = (prepareTea, numOfCups) => {
const teaCups = ;
for(let cups = 1; cups <= numOfCups; cups += 1) {
const teaCup = prepareTea();
teaCups.push(teaCup);
}
return teaCups;
};