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