Which method is used to convert a string to a number in JavaScript?
a. toInt()
b. parseInt()
c. convertToNumber()
d. castToNumber()
This question is part of this quiz :