javascript .charat code example
Example 1: javascript get first character of string
var str="Hello Folks!"
var firstStringChar = str.charAt(0);
Example 2: javascript charat
myString = "Hello World!";
console.log(myString.charAt(0));
console.log(myString.charAt(5));
console.log(myString.charAt(8));
console.log(myString.charAt(23));
Example 3: charAt javascript
myString = "Hello World!";
console.log(myString.charAt(0));
console.log(myString.charAt(5));
console.log(myString.charAt(8));
console.log(myString.charAt(23));