Q. Which function is used to remove whitespace from the beginning and end of a string?

  • (A) trim()
  • (B) strip()
  • (C) remove()
  • (D) clean()
πŸ’¬ Discuss
βœ… Correct Answer: (A) trim()
Explanation: trim() removes whitespace from both ends of a string.
Explanation by: Rati Dubey
trim() removes whitespace from both ends of a string.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
77
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Rati Dubey
Publisher
πŸ“ˆ
97%
Success Rate