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
AnswerC.
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.