Properties added to object are undefined?
<p>I'm trying to create an object that acts similarly to a hash or dictionary in other languages. I'm doing this with a <code>for</code> loop and assigning a key and value from an array but if I have more than one property the others become undefined. I'm trying to create key value pairs of from data (<code>i</code>). Any help would be appreciated, thanks!</p>

<pre><code>arrayOfRecievedHTML = recievedHTML.split('&lt;endOfCommentInformation&gt;');

for(j = 0; j &lt; i.length - 1; j++) {
    arrayOfIndividualComment = arrayOfRecievedHTML[j].split('&lt;commentSeperator&gt;');
    arrayOfComments[arrayOfIndividualComment[0]] = arrayOfIndividualComment[1];                     
}
</code></pre>

<p>Edit: Example of what e would be is:</p>

<pre><code>3&lt;commentSeperator&gt;Intersting&lt;endOfCommentInformation&gt;
5&lt;commentSeperator&gt;Nice&lt;endOfCommentInformation&gt;
</code></pre>
