1//You can use the substring function:
2
3let str = "12345.00";
4str = str.substring(0, str.length - 1);
5console.log(str);
6
7
8
9//This is the accepted answer, but as per the conversations below, the slice syntax is much clearer:
10
11let str = "12345.00";
12str = str.slice(0, -1);
13console.log(str);