This javascript code doesn't work in Internet Explorer 11 : <pre><code> &lt;script&gt;
const images = document.querySelectorAll('.view-content img')
images.forEach(item =&gt; {
  const src = item.getAttribute('data-original');
  const newSrc = 'https://example.com' + src;
  item.setAttribute('src', newSrc);
})
&lt;/script&gt;
</code></pre>

<p>This code changes </p>

<p><code>&lt;img src="/data/img/img_01.png"&gt;</code> to </p>

<p><code>&lt;img src="https://example.com/data/img/img_01.png"&gt;</code></p>

<p>as you can see.
but this code doesn't work in Internet Explorer 11.
How can i make this code work in Internet Explorer?</p>
