Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

java script remove last charecter from the string

let str = "sunilkumar";
str = str.substring(0, str.length - 1);
console.log(str);
 Run code snippetHide results
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #script #remove #charecter #string
ADD COMMENT
Topic
Name
9+5 =