A

Admin • 833K Points
Coach

Q. How to assign the image source in JavaScript?

  • (A) image = “url”
  • (B) source(“url”)
  • (C) image.src = “url”
  • (D) none of the mentioned
  • Correct Answer - Option(C)
  • Views: 27
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin

The image source is defined as image.src = “/images/html.gif”.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.