//To convert each background given to a second value const newBackgrounds = document.querySelectorAll('li'); for(let li of newBackgrounds){ li.classList.toggle('highlight'); }
//To convert each background given to a second value const newBackgrounds = document.querySelectorAll('li'); for(let li of newBackgrounds){ li.classList.toggle('highlight'); }