how to add two array values into one array in javascript : <pre><code>var period = ['1', '2', '3', '4'];
var marks = ['20', '15', '00', '20'];
</code></pre>

<p>i want result that is array in javascript
// returns</p>

<pre><code>data = [{"period": "1", "marks": 20},
{"period": "2", "marks": 15},
{"period": "3", "marks": 00},
{"period": "4", "marks": 20}];
</code></pre>

<p>I want to merge these arrays which are period and marks in to array called data
thank you in advance</p>
