Challenge set
JavaScript Array Methods
Master JavaScript array methods through six Challenges using forEach, map, filter, find, every, and reduce on realistic data collections.
Work through the collection
Challenges in This Set
- 01
JavaScript
Team Roster
Use JavaScript forEach() to print every team member in order with a clear label, practicing callback values without changing the original array.
50XPBeginner - 02
JavaScript
Product Labels
Build a JavaScript function that uses map() to turn product objects into formatted price labels while preserving their original order.
50XPBeginner - 03
JavaScript
Available Products
Use JavaScript filter() to return only available product objects, keeping their original order and leaving the source array unchanged.
50XPBeginner - 04
JavaScript
Find a User
Build a JavaScript function with find() that returns the user matching a requested ID, or null when no user has that ID.
50XPBeginner - 05
JavaScript
Order Readiness
Combine JavaScript some() and every() to decide whether an order has no backorders and every requested quantity is valid.
100XPIntermediate - 06
JavaScript
Shopping Cart Total
Use JavaScript reduce() to total a shopping cart by multiplying each item's price by its quantity, including an empty cart total of zero.
100XPIntermediate

