title: How to assign a variable for each item of the loop
body: <pre><code>for (var i = 0; i &lt; dataForecast.list.length; i += 8) {
    const data = dataForecast.list[i].dt_txt;
  }
  </code></pre>
  <p>This loops gives out 5 intended looped pieces of data but I'm struggling to assign each loop to its own variable.</p>