Published
- 1 min read
javascript remove last character from string
The solution for this is noted below
javascript remove last character from string
Solution
var str = 'mystring';
// the character 'g' will be removed
str = str.slice(0, -1);
Try other methods by searching on the site. That is if this doesn’t work