Examveda
Examveda

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

Answer: Option C

Solution(By Examveda Team)

The Image() constructor creates and preloads a new image object.

This Question Belongs to Javascript >> Animation

Join The Discussion

Related Questions on Animation