Array loop for Object.keys and its value
<p>I am trying to show an array loop in which i have a date and its value. I am able to loop Objects.keys of an array but inner loop need to show the key array individualy. Its a task of simple arrays but i'm unable to figure it out.
following is my code.</p>

<pre><code>var arr = {
    '2016-03-06' : ['1', '2','3','4','5'],          // 6th march 2016
    '2016-03-07' : ['6','7','8','9','10','11'],     // 7th march 2016
    '2016-03-08' : ['2','3','4','5'],           // 8th march 2016
    '2016-03-09' : ['6','7','8','9','10','11'],     // 9th march 2016
    '2016-03-10' : ['1', '2','3'],          // 10th march 2016
    '2016-03-11' : ['6','7','8','9','10','11'],     // 11th march 2016
};

var a=0;
var b=0;
ab = Object.keys(arr).length;
bc = Object.keys(arr)[b].length;
console.log(ab);
console.log(bc);

for(a=0; a &lt; ab; a++){
    $('.result .array').append('&lt;li data-date="'+Object.keys(arr)[a]+'"&gt;'+ Object.keys(arr)[a] + '&lt;/li&gt;');
    for(b=0; b &lt; Object.keys(arr).length; b++){
        $('.result .array').append('&lt;li data-date='+ Object.keys(arr)[a]  +'&gt;1&lt;/li&gt;');
    }
}
</code></pre>