Q. Which function is used to parse a string to an integer?
β
Correct Answer: (A)
parseInt()
Explanation: parseInt() is used to convert a string to an integer.