Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to remove last digit from number in javascript

            var str = "stackoverflow";
            str = str.substring(0, str.length - 1);
            console.log(str);
 
PREVIOUS NEXT
Tagged: #remove #digit #number #javascript
ADD COMMENT
Topic
Name
9+2 =