adding numbers in for loop javascript
<p>I need to sum all my numbers from a for loop with javascript</p>

<pre><code>var nums = ['100','300','400','60','40'];

for(var i=1; i &lt; nums.length; i++){

        var num = nums[i] + nums[i];

        alert(num);
}​
</code></pre>

<p>can someone help <a href="http://jsfiddle.net/GYpd2/1/" rel="nofollow">http://jsfiddle.net/GYpd2/1/</a></p>

<p>the outcome i am looking for is 900</p>
