Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to cut a string in js

let str = "12345.00";
str = str.substring(0, str.length - 1);
console.log(str);
 Run code snippetHide results
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #cut #string #js
ADD COMMENT
Topic
Name
2+9 =