jquery check last character of string code example Example: jquery last character in string myString.slice(-1);