MCQ
Which method is used to remove whitespace from both ends of a string?
JavaScript
A trim()
B strip()
C trimStart()
D trimEnd()
Explanation

trim() removes whitespace from both ends of a string.