Saturday, January 21, 2017

JS30 Challenge Day 18 - Reduce


querySelectorAll(‘[data-time]’)
you can have just [expression] to select elements

querySelectorAll gives a nodelist not array

So spread the nodelist into an array

or use Array.from()

No comments:

Post a Comment