Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

  1. What is the function of the parseInt() method?

  2. A.

     Parses a datatype and stores in an integer

    B.

     Parses a string and returns an integer

    C.

     Parses an integer and returns a string

    D.

     None of the mentioned

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    The function parseInt() method parses a string and returns an integer.


Be The First To Comment