hjavascriupt char at code example
Example 1: javascript last character of string
var lastChar = myString[myString.length -1];
Example 2: string charAt array js
var output = "Hello world!".split('');
console.log(output);
var lastChar = myString[myString.length -1];
var output = "Hello world!".split('');
console.log(output);