title: Javascript Code explanation. Image sequence
body: <p>I was wondering if you guys would be able to tell me what these last 2 lines mean in some code which will change images according to where they are in the sequence. It will change whenever I hit a button</p>
  
  <pre><code>var image = document.getElementById('light');
  image.src=list[light];
  </code></pre>
  
  <p>Hope you are able to help me.
  Thanks
  PS: That code is found near to the end of my whole code</p>