title: How to fill array inm loop JS?
body: <p>I have the following array:</p>
  
  <pre><code> var pageviews = [
       [1, randValue()],
       [2, randValue()],
       [3, randValue()],
  ];
  </code></pre>
  
  <p>This array is filled staticly. How can I fill this in loop?</p>
  
  <p>I tried:</p>
  
  <pre><code> $.each(data, function(k, v) {
        pageviews.push([num, v["value"]]);
  
  })
  </code></pre>
  
  <p>But it gives me different result</p>