delete-the-last-two-characters-of-the-string javascri[t code example
Example: remove last character from string js
var str = "Your string"
str = str.slice(0, -1);
console.log(str)
//returns "Your strin"
var str = "Your string"
str = str.slice(0, -1);
console.log(str)
//returns "Your strin"