jquery get last char in string code example Example: how to get last string in javascript 'abc'.slice(-2);