Q. Which function is used to parse a string to an integer?

  • (A) parseInt()
  • (B) int()
  • (C) toInteger()
  • (D) Number.parse()
πŸ’¬ Discuss
βœ… Correct Answer: (A) parseInt()
Explanation: parseInt() is used to convert a string to an integer.
Explanation by: Chandani
parseInt() is used to convert a string to an integer.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
59
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Chandani
Publisher
πŸ“ˆ
95%
Success Rate