delete char from string javascript 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, '')