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