Languages
[Edit]
EN

TypeScript - remove last 3 characters from string

0 points
Created by:
Paluskitten
356

In TypeScript, it is possible to remove the first character from the string in the following ways.

1. Using slice() method

Edit

Output:

2. Using substring() method

Edit

Output:

3. Using replace() method

Edit

Output:

Alternative titles

  1. TypeScript - how to chop off last 3 chars from string?
  2. How do I trim off last 3 characters in TypeScript?
  3. TypeScript - delete last 3 chars of string
  4. Slice off last 3 characters in ts
1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join