adplus-dvertising
frame-decoration

Question

How do we create and preload an image object in JavaScript?

a.

Use new keyword

b.

Call Image()

c.

Both Use new keyword and Call Image()

d.

None of the mentioned

Posted under JavaScript

Answer: (c).Both Use new keyword and Call Image()

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. How do we create and preload an image object in JavaScript?