scrimba
JS Deep Dive
Arrays & Sets
Transform Arrays with .reduce()
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Transform Arrays with .reduce()
AboutCommentsNotes
Transform Arrays with .reduce()
Expand for more info
index.js
run
preview
console
const menuItems = [
{ item: "Blue Cheese Salad", price: 8 },
{ item: "Spicy Chicken Rigatoni", price: 18 },
{ item: "Ponzu Glazed Salmon", price: 23 },
{ item: "Philly Cheese Steak", price: 13 },
{ item: "Baked Italian Chicken Sub", price: 12 },
{ item: "Pan Seared Ribeye", price: 31 }
];
Console
index.html
-8:05