My favorite is using spread operator to convert it to array and then use forEach
for looping.
var div_list = document.querySelectorAll('div'); // returns NodeList
var div_array = [...div_list]; // converts NodeList to Array
div_array.forEach(div => {
// do something awesome with each div
});
I code in ES2015 and use Babel.js so there shouldn’t be a browser support issue.