Which method is used to remove whitespace from both ends of a string in JavaScript?
a. trim()
b. strip()
c. clean()
d. remove()
This question is part of this quiz :