var arr = [\"He
When you write:
arr["Hello"]=...
you are creating a new Object associated with the arr Array object, which does not affect the length of arr.
arr
You can achieve the same effect by writing:
arr.Hello=...