javascript slicing get last character code example Example: javascript splice last character let str = "12345.00"; str = str.slice(0, -1); console.log(str);