Is it possible to do this:
var myString="Hello!"; alert(myString[0]); // shows "H" in an alert window
Or should it be done either with charAt (0) or with substr (0,1)? By βthis is normal,β I mean whether it will work in most browsers, is there a best practice recommendation that says otherwise, etc.
Thank.
javascript
Francisc Oct 29 '10 at 11:33 2010-10-29 11:33
source share