Input String

Operations

Custom Replace

Output

About String Manipulation

JavaScript provides many built-in string methods for manipulation:

  • split(): Split string into array
  • trim(): Remove leading/trailing whitespace
  • toUpperCase() / toLowerCase(): Change case
  • replace(): Replace substrings
  • reverse(): Reverse string order
  • length: Get string length