Is it ok to do this:
var myString=\"Hello!\"; alert(myString[0]); // shows \"H\" in an alert window
Or should it be done with either charAt
Using charAt is probably the best idea since it conveys the intent of your code most accurately. Calling substr for a single character is definitely an overkill.
charAt
substr
alert(myString.charAt(0));