javascript truncate last 3 letters 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