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.Related Questions on Animation
Which of the following can be implemented using animation?
A. Fireworks
B. Fade Effect
C. Roll-in or Roll-out
D. All of the mentioned
Which is the function that calls another function after a time interval?
A. setTimeout()
B. setTime()
C. callafter()
D. none of the mentioned
Which function is used to clear the timer value?
A. clearTimervalue()
B. clearTimeout()
C. clear()
D. flush(timer)
Which is the property used to position the object in the left of the screen?
A. object.position = left
B. object = position.left
C. object.style.left
D. none of the mentioned
Join The Discussion