delete character string js code example
Example 1: how to remove lasr char from string in javascript
str=str.slice(0, -1);
Example 2: javascript remove character from string
mystring.replace(/r/g, '')
str=str.slice(0, -1);
mystring.replace(/r/g, '')