remove last n from string js code example
Example: javascript remove last character from string
var str = "Hello";
var newString = str.substring(0, str.length - 1); //newString = Hell
var str = "Hello";
var newString = str.substring(0, str.length - 1); //newString = Hell