how to remove lasr char from string in javascript
snippet in javascript

remove last character from string js

user3851

var str = "Your string"
str = str.slice(0, -1); 
console.log(str)
//returns "Your strin"

how to remove lasr char from string in javascript

user4628

str=str.slice(0, -1);

js omit last string

user6529

"somestring0".slice(0, -1)
// "somestring"