remove two last characters js 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"