how to return an array instead of nodelist code example Example: javascript querySelectorAll to array const spanList = [...document.querySelectorAll("span")];