3 ms·DOM functions like getElementsByClassName return a nodelist, which as you say behaves like an array.by Flenser 8y agoDOM functions like getElementsByClassName return a nodelist, which as you say behaves like an array.