A

Admin • 828.03K Points
Coach

Q. What does trim() do?

  • (A) Removes all spaces in the string
  • (B) Removes leading and trailing whitespace
  • (C) Removes characters from the end
  • (D) Removes newline characters only

Explanation by: Admin
trim() removes only leading and trailing whitespace characters.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.