Vidyalelo
JavaScript · Q19

Parsing, Benchmarking And Logging

Programming · JavaScript · question 19

Q19

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
Answer
C.
Parses an integer and returns a string
D.
None of the mentioned

Answer: Option B

Solution

Answer: Option B
Solution:
The function parseInt() method parses a string and returns an integer.