How do I change the values in this array?
<p>Here's my code:</p>

<pre><code>var array = [{"number":"500","title":"whatever 500"},{"number":"400","title":"whatever 400"}];

alert(array[0].number); //should output 500

$.each(array, function(index, val)
{
    array[index].number = val * 5;
});

alert(array[0].number); //should output 2500
</code></pre>

<p>I'm trying to multiply all the <code>numbers</code> in my array by 5. But for some reason it's not working. It outputs <code>NaN</code> (Not-a-Number). And when I try to add 50, it outputs <code>[object Object]50</code>.</p>

<p>Can someone please tell me what I'm doing wrong here?</p>
