JavaScript przekształć klasy na tablice
const boxes = Array.from(document.getElementsByClassName('box'));
Lucky Locust
const boxes = Array.from(document.getElementsByClassName('box'));
const boxArray = [...document.getElementsByClassName('box')];