What is the function of the parseInt() method?

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

Answer: Option B

Solution(By Examveda Team)

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

Join The Discussion

Related Questions on Parsing, Benchmarking and Logging