Summarize Orders by Status
Use JavaScript reduce() to group orders by dynamic status values, calculating each group's count and total without changing the source data.
JavaScript
Challenge overview
- Format
- Build a Function
- Category
- JavaScript
- Difficulty
- Intermediate
arraysobjectsreducedynamic-keysaggregation
Keep practicing
More coding challenges
Python · Intermediate
Summarize Orders by Status in Python
Group Python order records by dynamic status values, calculating each group's count and total without changing the input data.
View challengeJavaScript · Beginner
Supply Run
Use a JavaScript for...of loop to pack every supply in array order, then report how many items were packed for the trip.
View challengePython · Beginner
Supply Run in Python
Iterate directly over a Python list of supplies and print every packed item in its original order without hardcoding the values.
View challenge

