Answer & Solution
Answer: Option D
Solution:
All of the options (A, B, and can be used to convert a string to a number in JavaScript: - parseInt("10") converts a string to an integer. - parseFloat("10.5") converts a string to a floating-point number. - Number("10") converts a string to a number. Therefore, option D, "All of the above," is correct for converting a string to a number in JavaScript.