Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

  1. What is the return data type of the property accept that belongs to the Input element?

  2. A.

     integer

    B.

     string

    C.

     boolean

    D.

     float

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    When type is “file”, this property is a comma-separated list of MIME types that specify the types of files that may be selected. The strings “audio/*”, “video/*”, and “image/*” are also legal. Mirrors the accept attribute.


Be The First To Comment