Which img is gonna be loaded first ??

<img id="myimg" src="orange.png" alt="" /> <script> var el = document.getElementById("myimg"); el.src = "apple.png"; </script> **************************** In this code if we but the script tag in the end , and as u know the html elements will be loaded first , then the js code will be loaded . So which img will appear first ?? Or just the second one will appear ??

4/20/2019 8:47:26 PM

Let Name = Abdalrhman ;

2 Answers

New Answer


Have you tried it out?


Mind To Machine 💻🕆 no i haven't