Code for Day 18 challenge

Day 18: Tally String Times with Reduce

This challenge was to calculate the total video time.

What Did I Learn?

When you use document.querySelectorAll, it outputs a NodeList object. This looks like an array but you won't be able to use many of its methods.

When a NodeList (or an array-like object) is returned, use Array.from() to create a new array instance.

Interested in participating in #JavaScript30?

Register here and learn at your own speed.