Q. Which method trims whitespace from a string?

A
trim()
B
strip()
C
clean()
D
remove()
Solution:

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

Entri PDF Icon

Get Question Bank

Strengthen Your Practice with our comprehensive question bank.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!