Remove the Last Character from a String

0
0
var origString = 'Happy Dance7';
var trimmedString = origString.substring(0, origString.length-1);
console.log(trimmedString);
// 'Happy Dance'
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.