Which of the following is a JavaScript function for converting a string to a number?
A. toString()
B. parseInt()
C. parseFloat()
D. None of the above
Answer:B
Which of the following is a JavaScript function for converting a string to a number?
A. toString() B. parseInt() C. parseFloat() D. None of the above