Menu
Coddy logo textTech

List of Product Prices

Lesson 18 of 18 in Coddy's Array Methods in JavaScript course.

Imagine you're working with a list of numbers representing product prices. You want to simplify shopping by finding the lowest price value and creating a new list to manage your shopping strategy.

challenge icon

Challenge

Easy

Organize the prices from lowest to highest.

Make prices visually cleaner by rounding them off (e.g., 123.456 to 123).

Create a new list of items priced under $200.

Offer a 10% discount on the filtered prices and log the final discounted prices(list).

Check the hint if you are not sure!

Try it yourself

const prices = [199.99, 249.50, 79.99, 12.50, 8.99, 350.75];

// Write code here

All lessons in Array Methods in JavaScript