Q. How to convert a string to an integer in JavaScript? (A) parseInt(str) (B) Number(str) (C) +str (D) All of the above ποΈ Show Answer π¬ Discuss π Share β‘Menu β Correct Answer: (D) All of the above Explanation: All mentioned methods can convert string to number.