In a tutorial I saw the following:
Array.from( template.querySelectorAll('.hw-text') )
.forEach( n => n.textContent = hwMsg );
But the following line would also work.
template.querySelectorAll('.hw-text')
.forEach( n => n.textContent = hwMsg );
Now I wonder why in the tuturial Array.from is used and what advantage you get from it.