In the Chrome Developer Tools window, I typed in:
> name = ["a", "b", "c"]
["a", "b", "c"]
However, name
became a string:
> typeof name
"string"
> name
"a,b,c"
> name[1]
","
This obviously isn't true for other variable names!
> foo = ["a", "b", "c"]
["a", "b", "c"]
> typeof foo
"object"
> foo[1]
"b"
And name
is defined as the empty string on page load (and, as far as I can tell, cannot become anything other than a string).
So, what's up with name
?