title: How to send multiple requests asynchronously in JavaScript?
body: <p>I need to send 3 requests at once. I got some async function which works, but sends requests one by one. Where is the problem ?</p>
  <pre><code>async function fetcher(){
      const cart = await send(&quot;GET&quot;, &quot;https://www.mediaexpert.pl/cart/mini/data&quot;)
      const cart_json = JSON.parse(cart)
      if(cart_json.items.length === 0){
          for(let item of [296752801, 299028489, 474510260]){
              let json = JSON.stringify({&quot;version&quot;: 1, &quot;qty&quot;: 1, &quot;gift_card_custom_price&quot;: 0, &quot;id&quot;: item})
              await send(&quot;POST&quot;, &quot;https://www.mediaexpert.pl/cart/pre-x-add?precart=true&quot;, json)
          }
          return true
      }
      return false
  }
  
  const interval = setInterval(()=&gt;{
      fetcher().then(resp=&gt;{
          if(resp === false){clearInterval(interval)}
      })
  }, 500)
  </code></pre>