Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

  1. How to assign the image source in JavaScript?

  2. A.

     image = “url”

    B.

     source(“url”)

    C.

     image.src = “url”

    D.

     none of the mentioned

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    The image source is defined as image.src = “/images/html.gif”.


Be The First To Comment