.trim()

Term side of the Card
Topic: String
Unit title: .trim()
Categories: Method
Explanation side of the Card

Explanation: The method that removes whitespace from the beginning and end of a string. It's useful for cleaning up user input or text data.

Browser compatibility:
  • The chrome browser supports this feature starting from version 4
  • The edge browser supports this feature starting from version 12
  • The firefox browser supports this feature starting from version 3.5
  • The safari browser supports this feature starting from version 5
Availability: