Q. Which built-in method parses a string to an integer?

  • (A) parseInt()
  • (B) parseFloat()
  • (C) Number()
  • (D) toInteger()
πŸ’¬ Discuss
βœ… Correct Answer: (A) parseInt()
Explanation: parseInt() converts a string to an integer.
Explanation by: Mr. Dubey
parseInt() converts a string to an integer.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
95
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
86%
Success Rate