Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

  1. How do we create and preload an image object in JavaScript?

  2. A.

     Use new keyword

    B.

     Call Image()

    C.

     Both Use new keyword and Call Image()

    D.

     None of the mentioned

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    The Image() constructor creates and preloads a new image object.


Be The First To Comment