title: Looping through arrays. Rainbow Text Exercise
body: <p>Need help. I attached the image of the question, This is the image of the code:</p>
  <p><img src="https://i.stack.imgur.com/3sujm.png" alt="" /></p>
  <pre><code>// This is the given code:
  
  const colors = ['red', 'orange', 'yellow', 'green', 'blue', 'indigo', 'violet'];
  </code></pre>
  <pre><code>// I written these:
  
  const spans = document.querySelector('h1 span');
  
  for(let rainbow of spans){
      spans.style.color = &quot; &quot;;
  }
  </code></pre>