During the work, sometimes we need to delete the last character in the javascript string. So how can that work? You can use it here:
var newStr = str.substring(0, str.length-1);
During the work, sometimes we need to delete the last character in the javascript string. So how can that work? You can use it here:
var newStr = str.substring(0, str.length-1);