title: Pick a random item from a list
body: <p>I'm learning Javascript and i need some help. I have a list. I've tried to make a list, where you can, by the click of a button, get a random song from that list, but it doesn't seem to work. My list is down below, what am i doing wrong?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCKTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;div&gt;
    &lt;button type="randomSong"&gt;Random Music&lt;/button&gt;
    &lt;input "randomSong" id="randomSong"&gt;
  &lt;/div&gt;
  
  &lt;script&gt;
  
  var song = Array("song1", "song2", "song3", "song4", "song5", "song6");
  
  var randomSong = song[Math.floor(Math.random()*song.length)];
  
  &lt;/script&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>