javascript get last character in string
snippet in javascript

javascript get last character in string

user1122

var hello = "Hello World";
var lastCharOfHello=hello.slice(-1);//d