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);
UU
Unknown User603d ago