How to use object in javascript or jquery
<p>I need to create object parameter some thing like this </p>

<pre><code>sample_data=[{
                        name: 'new',
                        data: [1, 0, 2, 8, 1]
                    }, {
                        name: 'open',
                        data: [1, 2, 3, 7, 1]
                    },{
                        name: 'closed',
                        data: [5, 4, 3, 1, 1]
                    },{
                        name: 'onhold',
                        data: [1, 1, 2, 0, 1]
                    }, {
                        name: 'completed',
                        data: [0, 0, 5, 1, 2]
                    }];
</code></pre>

<p>I had totally 6 arrays all the name parameters in array1 and all data parameters in another arrays. </p>

<p>Is there any option to built object as my requirement above, using arrays that i have</p>

<p><strong>My arrays:</strong></p>

<pre><code>name_array=Array("new","open","closed","onhold","completed");

    new_data=Array(1, 0, 2, 8, 1);
    open_data=Array(1, 2, 3, 7, 1);
    closed_data=Array(5, 4, 3, 1, 1);
    onhold_data=Array(1, 1, 2, 0, 1);
    completed_data=Array(0, 0, 5, 1, 2);
</code></pre>

<p>Help me how to create object using these array in javascript or jquery.</p>
