js code to find last 7 letter of string code example Example: get last char javascript var lastChar = myString[myString.length -1];