Why do they write everywhere that NodeList has no forEach method (like an array)? For example, here https://developer.mozilla.org/ru/docs/Web/API/NodeList
If you take this code
<div class="one">One</div> <div class="one">Two</div> <div class="one">Three</div> then forEach works for him
var nodeList = document.querySelectorAll('.one'); var list = nodeList.forEach(function(x){ console.log(x.innerHTML); }) // One, Two, Three because in proto NodeList forEach present