Remove the Last Character from a String

Submitted by:J Kamy81

Date added:31 January, 2018

Category:JavaScript

JavaScript code snippet to Remove the Last Character from a String

Tags: string , character

Code Snippet:

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

 
 

Comments