javascript how to find the last value in a strig code example Example: get last char javascript var lastChar = myString[myString.length -1];