Skip to main content
Version: Next

Remove N Trailing Chars In String

Removes the last chars of the string

Description

Removes the last characters of the string

Inputs

  • s (String): The string to remove the last chars
  • n (Number): The number of characters to remove starting from the end

Outputs

  • string (String): The returned string that has the last chars removed