title: Change style to all HTMLcolection with JS
body: <p>I have an HTML collection and i want to change to all the collection at the same time howcan I do it that but in a single line?? imagenEnsaladas(HMLT COLECTION  of list items)</p>
  <pre><code>imgSalad.src = carruselPhotos[positionCarrusel];
      carruselLi[0].style.backgroundColor = &quot;#1a1d20&quot;;
      carruselLi[1].style.backgroundColor = &quot;#1a1d20&quot;;
      carruselLi[2].style.backgroundColor = &quot;#1a1d20&quot;;
      carruselLi[3].style.backgroundColor = &quot;#1a1d20&quot;;
      carruselLi[4].style.backgroundColor = &quot;#1a1d20&quot;;
      carruselLi[positionCarrusel].style.backgroundColor = &quot;red&quot;;
  </code></pre>