Assignment
import { teas } from "../data/teas.js";
import fs from "fs";Exercise 1: Stock by Caffeine Level
function stockByCaffeine(teas) {
return teas.reduce((acc, tea) => {
// Your implementation
}, {});
}
console.log(stockByCaffeine(teas));
// { high: 745, medium: 450, low: 190, none: 635 }Exercise 2: Order Processing System ⭐
Exercise 3: Sequential Processing
Exercise 4: Inventory Aggregation from File
Exercise 5: Build runSequentially ⭐⭐
Submission
Last updated