Is there a way to delete the second-to-last character from a string?
For instance
string = '96+658-+';<br />
fixInput(string);
function fixInput(string) {
// string= string.replace(/[-+x÷]$/,''); // incorrect
// string= string.,curValueString.substr(-2,curValueString.length-2) // incorrect
// return string;
return '96+658+';
}