Deepak
Deepak2y ago

Deepak – 07-22 Aug 23

can someone explain
var listContainer = document.querySelector('.list-container'),
listItems = document.querySelectorAll('.list-item'),
listArray = Array.prototype.slice.call(listItems);
var listContainer = document.querySelector('.list-container'),
listItems = document.querySelectorAll('.list-item'),
listArray = Array.prototype.slice.call(listItems);
My question is what is the last line doing ?
listArray = Array.prototype.slice.call(listItems);
listArray = Array.prototype.slice.call(listItems);
2 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
reactibot
reactibot2y ago
This thread hasn’t had any activity in 12 hours, so it’s now locked. Threads are closed automatically after 12 hours. If you have a followup question, you may want to reply to this thread so other members know they're related. https://discord.com/channels/102860784329052160/565213527673929729/1011535774115704872