How to make a 3D object array in JavaScript?
<pre><code>lyricsInp = document.getElementById("lyrics").value;
var lines = lyricsInp.split("\n");
for (i = 0; i &lt; lines.length; i++) {
    holder[0][i] = new Array();
    words = lines[i].replace(/[ \t\r]+/g, "###").split("###");
    for (j = 0; j &lt; words.length; j++) {
        holder[0][i][j].word = words[j];
        holder[0][i][j].startT = 0;
        holder[0][i][j].endT = 0;
    }
}
</code></pre>

<p>Here I need each holder element to keep <code>word,</code> <code>startT</code> and <code>endT</code>, but this does not work. How do I make this happen.</p>
