get index of the last letter in a words jquery code example
Example 1: javascript get first character of string
var str="Hello Folks!"
var firstStringChar = str.charAt(0); //H
Example 2: javascript last character of string
var lastChar = myString[myString.length -1];