js string without the last character code example
Example 1: javascript string except last character
id.slice(0, -2)
Example 2: remove last char string js
let str = "12345.00";
str = str.substring(0, str.length - 1);
console.log(str);
id.slice(0, -2)
let str = "12345.00";
str = str.substring(0, str.length - 1);
console.log(str);