dsa | sp javascript string | Question 9

Last Updated :
Discuss
Comments

Which method is used to convert a string to a number in JavaScript?

a. toInt()

b. parseInt()

c. convertToNumber()

d. castToNumber()

Share your thoughts in the comments