Q. Which method trims whitespace from a string?
Solution:
trim() removes whitespace from both ends of a string.
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.
trim() removes whitespace from both ends of a string.
Strengthen Your Practice with our comprehensive question bank.