dsa | sp javascript string | Question 5

Last Updated :
Discuss
Comments

Which method is used to remove whitespace from both ends of a string in JavaScript?

a. trim()

b. strip()

c. clean()

d. remove()

Share your thoughts in the comments