Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

  1. Which of the following are static methods in JavaScript?

  2. A.

     Date.parse()

    B.

     Date.UTC()

    C.

     Both Date.parse() and Date.UTC()

    D.

     None of the mentioned

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    Date.parse() parses a string representation of a date and time and returns the internal millisecond representation of that date. Date.UTC() Returns the millisecond representation of the specified UTC date and time.


Be The First To Comment