Examveda

What is the return type of typeof for standard JavaScript objects?

A. xml

B. object

C. dom

D. html

Answer: Option B

Solution (By Examveda Team)

The typeof operator returns “object” for all standard JavaScript objects as functions are, and the typeof operator returns “xml”.

This Question Belongs to Javascript >> Classes And Modules

Join The Discussion

Comments (1)

  1. Bhavani Vasa
    Bhavani Vasa:
    1 year ago

    The different variant of Date() constructor to create date object is/are

    i. new Date(date)

    ii. new Date(milliseconds)

    iii. new Date(date string)

    iv. new Date(year, month, date[hour, minute, second, millisecond])

    Select one:

    a. i, ii and v_{n} only

    Ob. i, ii, iii and Iv

    c. i, ii and iii only

    d. ii, iii and iv only

    ot sure

Related Questions on Classes and Modules