JavaScript mengonversi kelas menjadi array
const boxes = Array.from(document.getElementsByClassName('box'));
Lucky Locust
const boxes = Array.from(document.getElementsByClassName('box'));
const boxArray = [...document.getElementsByClassName('box')];