adplus-dvertising
frame-decoration

Question

How to assign the image source in JavaScript?

a.

image = 'url'

b.

source('url')

c.

image.src = 'url'

d.

none of the mentioned

Posted under JavaScript

Answer: (c).image.src = 'url'

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. How to assign the image source in JavaScript?