Q. How to assign the image source in JavaScript?

  • (A) image = “url”
  • (B) source(“url”)
  • (C) image.src = “url”
  • (D) none of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (C) image.src = “url”
Explanation: The image source is defined as image.src = “/images/html.gif”.
Explanation by: Mr. Dubey
The image source is defined as image.src = “/images/html.gif”.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
140
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
93%
Success Rate