JavaScript Professional

Capstone: build a reusable data-processing module graded by the Academy AI.

1 lessons 🛠 Project-based
Lessons Project Certificate

📚 Lessons

1 Brief & rubric

This level is project-based. Implement the module described below in the editor. The Academy AI grades accuracy, cleanliness and performance — reach 70% to earn the certificate.

🛠 Capstone Project

Build a "summariseOrders" data module

Implement a pure function summariseOrders(orders) that takes an array of { customer, total } objects and returns { count, revenue, average, topCustomer }. Use array methods, not manual index loops, and keep the function pure.

Requirements

  • Declare a function named summariseOrders that takes one parameter
  • Use const/let (no var)
  • Use at least one of reduce, map or filter
  • Return an object literal with the computed summary
  • Avoid mutating the input array
  • Keep it free of console.log debugging leftovers

When you submit, the Academy AI evaluates your code on accuracy (50%), code cleanliness (25%) and performance (25%). Score 70%+ to earn your certificate.

JS · your solution

            

🎓 Certificate of Completion

🔒 Pass the project evaluation above (70%+) to unlock your downloadable certificate.