Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript insert last character of string

var str = "Hello";
var newString = str.substring(0, str.length - 1); //newString = Hell
 
PREVIOUS NEXT
Tagged: #javascript #insert #character #string
ADD COMMENT
Topic
Name
2+2 =