charat javascript

JavaScript
var str = "HELLO WORLD";

var res = str.charAt(0); var str="Hello Folks!"
var firstStringChar = str.charAt(0); //H
Source

Also in JavaScript: