InterviewSolution
Saved Bookmarks
| 1. |
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() |
|
Answer» The correct answer is (c) Both Use new keyword and Call Image() Easiest explanation: The Image() constructor creates and preloads a new image object. The url is specified and the image is preloaded. |
|