Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

remove last character from string js

var str = "Your string"
str = str.slice(0, -1); 
console.log(str)
//returns "Your strin"
Source by flaviocopes.com #
 
PREVIOUS NEXT
Tagged: #remove #character #string #js
ADD COMMENT
Topic
Name
3+6 =