AI

String methods allow you to manipulate text. Let's practice splitting and joining strings.

Your Task:

  • Split text into an array called parts using separator
  • Get the first element (productName) and last 10 chars (lastChars)
  • Rejoin parts with " | " into rejoined
TypeScript Solution
Loading...

Submit your code to see test results