title: Looking display in Loop Array
body: <p>I have 3 variables in this format, I want output Product Array Format.</p>
  
  <pre><code>Name: Rahul, Mukesh, Nitish
  Price: 75, 80, 90
  Quantity: 1, 2, 4
  </code></pre>
  
  <p>Looking to Display Product Output:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>// Tried this code
  function GetListOfMyCartProducts() {
    var products = [];
    for (i = 0; i &lt; length; i++) {
      productNumber = productNumber + 1;
      var product = {
        'Name': Name,
        'Price': Price,
        'Quantity': Quantity
  
      }
      products.push(product);
    }
    return products
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>OutPut Looking -</p>
  
  <p>Product: </p>
  
  <pre><code>[
     {name: 'Rahu', price: '75', quantity: '1'}, 
     {name: 'Mukesh' , price: '80', quantity: '2'}, 
     {name: 'Nitish' , price: '90', quantity: '4'}, 
  ]
  </code></pre>