get last letter of word in array javascript code example Example: get last char javascript var lastChar = myString[myString.length -1];