how to get the last character from the string in the jquery code example Example: jquery last character in string myString.slice(-1);