var hello = "Hello World"; var lastCharOfHello=hello.slice(-1);//d
var lastChar = myString[myString.length -1];