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