how to take out a letter in a string js given length code example
Example 1: remove last character from string javascript
let str = "12345.00";
str = str.substring(0, str.length - 1);
console.log(str);
Example 2: remove character at index from string javascript
// removing char at index 3
var str = "Hello World";
str = str.slice(0, 3) + str.slice(4);
console.log(str) // Helo World