I had a generic question about JavaScript arrays. Are array indices in JavaScript internally handled as strings? I read somewhere that because arrays are objects in JavaScri
That is correct so:
> var a = ['a','b','c'] undefined > a [ 'a', 'b', 'c' ] > a[0] 'a' > a['0'] 'a' > a['4'] = 'e' 'e' > a[3] = 'd' 'd' > a [ 'a', 'b', 'c', 'd', 'e' ]