title: How to target child element in JavaScript
body: <p>How to target the img element in JavaScript to change img src. </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;body&gt;
   &lt;div class="cover"&gt;
    &lt;img src="img.jpg" width="60" height="60"&gt;
    &lt;/div&gt;
  &lt;/body&gt;</code></pre>
  </div>
  </div>
  </p>