document queryselectorall and map javacript

JavaScript
[...document.querySelectorAll('div')].map(x => console.log(x.innerHTML))
Source

Also in JavaScript: