I have a variable:
var text = \"hello\";
I want to get the 0 positioned character, so:
var firstChar = text[0];
You can use .substr().
var firstChar = text.substr(0,1);