Tutorial Remove the Last Character from a String

by in , 0

var origString = 'Happy Dance7';
var trimmedString = origString.substring(0, origString.length-1);
console.log(trimmedString);
// 'Happy Dance'

Leave a Reply