How to get total sum of array
<p>i'm trying to add together the contents of an array (integers).
for example:</p>

<pre><code>var myArray;
var answer;
myArray[0]=2;
myArray[1]=5;
answer=myArray[0]+myArray[1];
</code></pre>

<p>answer should equal 7.Could you help me, please? Thank you so much.</p>
