title: Reexecuting await/async/promise.all function with a new value
body: <p>I am basically trying to send multiple API queries at once and wait for the result. The code works well for the first query, but I am actually struggling to reset the value of the prior async return. After the first execution is completed, it keeps returning the very first values. The goal is to assign random href(URL) with every function's execution and recall the API once again, so it can call the API once again with a newly randomized href and return new values. Here is the code, would be great is someone could help:</p>
  <pre><code>async function fetchData() {  
  
      const [test0_array_response, 
             test1_array_response, 
             test2_array_response, 
          ] = await Promise.all([
        fetch(random_href+'/test0/'),
        fetch(random_href+'/test1/'),
        fetch(random_href+'/test2/'),
      ]);
    
      const test0_array = await test0_array_response.json();
      const test1_array= await test1_array_response.json();
      const test2_array = await test2_array_response.json();
    
      return [test0_array, test1_array, test2_array];
    }
  
  
  function callApi() {
      console.log(fetchData()) // returns a promise
  };
  </code></pre>