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
Set image()
Correct Answer: Both Use new keyword and Call Image()
The Image() constructor creates and preloads a new image object. The url is specified and the image is preloaded.