8.
How can you convert a string to a number in JavaScript?
Number()
parseInt()
parseFloat()
toNumber()
Correct: A, B, C
In JavaScript, you can use the Number(), parseInt(), and parseFloat() methods/functions to convert a string to a number. The Number() method/function is the most common and can be used to convert a string representation of a number to an actual number. The parseInt() function can be used to parse a string and return an integer while parseFloat() can be used to parse a string and return a floating-point number.