I\'ve always thought that if you want to access the nth character in a string called str, then you have to do something like str.charAt(n). Today I was
If you run your code in an old enough browser, IE 7 for example, it won't be able to access the string like that. On those older engines, you'd have to use .charAt(index) instead.