M

Mr. Dubey • 52.70K Points
Coach

Q. 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
  • Correct Answer - Option(C)
  • Views: 62
  • Filed under category JavaScript

Explanation by: Mr. Dubey
The Image() constructor creates and preloads a new image object.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics