javascrit check last character is letter code example Example: get last char javascript var lastChar = myString[myString.length -1];