js get first letter of string

JavaScript
var str="Hello Folks!"
var firstStringChar = str.charAt(0); //Hvar x = 'some string';
alert(x.charAt(0)); // alerts 's'
Source

Also in JavaScript: