Q. How to assign the image source in JavaScript?
β
Correct Answer: (C)
image.src = “url”
Explanation: The image source is defined as image.src = “/images/html.gif”.