MCQ
Which method is used to remove whitespace from both ends of a string?
Explanation
trim() removes whitespace from both ends of a string.
trim() removes whitespace from both ends of a string.