title: Change position of several images using javascript
body: <p>I can't find the answer that helps me with my problem. I can change position of a div called .c-articleimage (which includes an image) to be placed after .c-article__lead with following code:</p>
  <pre><code>var articleimage = document.querySelector('.c-articleimage');
  var newposition = document.querySelector('.c-article__lead');
  newposition.insertAdjacentElement('afterend', articleimage);
  </code></pre>
  <p>But what if I have several .c-articleimage and .c-article__lead? I was thinking about I could use querySelectorAll? But I might need to loop it in some way?</p>
  <pre><code>var articleimage = document.querySelectorAll('.c-articleimage');
  var newposition = document.querySelectorAll('.c-article__lead');
  newposition.insertAdjacentElement('afterend', articleimage);
  </code></pre>
  <p>How can I tacle this?</p>
  <p>Best,</p>