title: Get the src value from the img tag
body: <p>I wrote this code part in my JavaScript file to select all <code>img</code> tags in my <code>.html</code> file. </p>
  
  <pre><code>var imgs = document.getElementsByTagName('img');
  </code></pre>
  
  <p>How can I extract the <code>src</code> values of those tags to an array for future use?</p>