In this challenge we need to tally string times with reduce. We are going to add the total number of minutes, seconds and hours
from a list of timestamps from videos.
We need to pull the strings from all list items with the data-time attribute from the DOM, convert them into numbers and add everything up.
Finally we will log this to the console.
The main point of the exercise is to show how the reduce function is used.
Code snippets shown below:
and demo is here.