Course · Section 11: Working With Arrays · Lecture 160: The reduce Method
Implement `percentComplete(todos)` returning the rounded percentage of todos that are done, or `0` for an empty list.
+ 1 hidden test run on Submit.
Guard the empty case to return 0, then round the done-over-total ratio times 100 for a clean percentage.
Run your code to see results.