title: How would I achieve a set of instructions on an array for each item?
body: <p>I'm not sure how else to word this, but I have an array of songs, and I need to play them, but after the array finishes, it needs to loop.
  I need it to look something like this:</p>
  
  <pre><code>let playlist = [
      {
          name: "value"
      },
      {
          name: "value"
      }
  ]
  
  function myFunc() {
      console.log(playlist[0]); // Log the first song
      console.log(playlist[1]); // After the first song finishes playing log this song
      // Once finished with this, repeat again.
  }
  </code></pre>
  
  <p>It's basically playing a playlist, and setting it to repeat.
  Thanks!</p>