indexing string in javascript

JavaScript
var str="Hello Folks!"
var firstStringChar = str.charAt(0); //Hvar str = "HELLO WORLD";

var res = str.charAt(0); 
Source

Also in JavaScript: