JavaScript array on multiple lines
<p>I made an array with several strings as values so it becomes one really long line that takes a while to scroll through. To put it on multiple lines I searched and found that I can use a + sign to link the lines, but I'm having a problem. Here's a small example:</p>

<pre><code>&lt;script type="text/javascript"&gt;
var x;
var colorArr=["Red","Orange","Yellow",+
"Green","Blue","Purple"];
for(x=0;x&lt;6;x++)
document.write(colorArr[x]+"&lt;br/&gt;");
&lt;/script&gt;
</code></pre>

<p>This outputs:</p>

<pre><code>Red
Orange
Yellow
NaN
Blue
Purple
</code></pre>

<p>Basically whichever element is the first on the line becomes undefined for some reason. How do I do this the correct way?</p>
