Q. How to convert a string to an integer in JavaScript?
β
Correct Answer: (D)
All of the above
Explanation: All mentioned methods can convert string to number.