string javascript dapatkan dua karakter terakhir
var member = "my name is Mate";
var last2 = member.slice(-2);
alert(last2); // "te"
Frightened Flatworm
var member = "my name is Mate";
var last2 = member.slice(-2);
alert(last2); // "te"