How to remove the last character in a string with javascript
![How to remove the last character in a string with javascript](/content/images/size/w960/2020/05/fotis-fotopoulos-LJ9KY8pIH3E-unsplash.jpg)
Code snippet to remove the last character of a string in javascript.
let str = "12345.00";
str = str.slice(0, -1);
console.log(str)
// 12345.0
Code snippet to remove the last character of a string in javascript.
let str = "12345.00";
str = str.slice(0, -1);
console.log(str)
// 12345.0