js get last 2 letters from string code example
Example: javascript string get last two character
var member = "my name is Mate";
var last2 = member.slice(-2);
alert(last2); // "te"
var member = "my name is Mate";
var last2 = member.slice(-2);
alert(last2); // "te"