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
πŸ’¬ Discuss
βœ… Correct Answer: (C) Both Use new keyword and Call Image()
Explanation: The Image() constructor creates and preloads a new image object.
Explanation by: Mr. Dubey
The Image() constructor creates and preloads a new image object.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
139
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
87%
Success Rate