×
×
Correct!

Use HTML DOM to change the value of the image's src attribute.

<img id="image" src="smiley.gif"> <script> document.getElementById("image").src = "pic_mountain.jpg"; </script>

Not Correct

Click here to try again.

Correct!

<img id="image" src="smiley.gif">

<script>
document.getElementById("image") = "pic_mountain.jpg";
</script>

  
  
  




×

Reset the Score?

This will reset the score of ALL 67 exercises.

Are you sure you want to continue?



×

Congratulations!

You have finished all 67 JS exercises.

Share your score:



Get Certified!

Take our JavaScript Developer Certificate to prove that you have fundamental knowledge of web development using JavaScript.