Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Remove last char from string using Javascript

var s1 = "PHP7";
s1 = s1.substring(0, s1.length - 1);
console.log(s1);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Remove #char #string #Javascript
ADD COMMENT
Topic
Name
5+5 =