how to always grab the last chartscter in a string javascript code example Example: javascript last character of string var lastChar = myString[myString.length -1];