scrimba
JavaScriptmas: 🍭 Candy Sale
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

JavaScriptmas: 🍭 Candy Sale
AboutCommentsNotes
JavaScriptmas: 🍭 Candy Sale
Expand for more info
index.js
run
preview
console
/*
It's the day after Halloween πŸŽƒ and all the candy is on sale!
To buy up all the candy, use map() and filter() to put all the
candy into a `shoppingCart` array.
The new array should contain only the item and the price, like
this:
Expected output: */

[
{item: "🍭", price: 2.99},
{item: "🍫", price: 1.99},
{item: "🍬", price: 0.89}
]

import products from "./data.js";


function getSaleItems(data) {

}
Console
/index.html
-11:00