Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to remove last character from string in javascript

let str = "12345.00";
str = str.substring(0, str.length - 1);
console.log();
 Run code snippet
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #character #string #javascript
ADD COMMENT
Topic
Name
9+3 =