get last 3 chars of 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