let buttons = Array.from(document.querySelector('.button'));
// []
let buttons = Array.from(document.getElementsByClassName('button'));
// (20) [div.button, div.button, div.button, div.button, div.button, div.button, div.button, div.button, div.button, div.button, div.button, div.button, div.button, div.button, div.button, div.button, div.button, div.button, div.button, div#equal.button]
Why are the outputs different?