str.charAt(str.length-1)
const myString = "linto.yahoo.com."; const stringLength = myString.length; // this will be 16 console.log('lastChar: ', myString.charAt(stringLength - 1)); // this will be the string Run code snippet
str[str.length-1]