title: Using async/await inside for loop is not waiting for async method calls
body: <p>My async method <code>getNumFruit</code> is not getting called for my below code </p>
  
  <pre><code>const fruitsToGet = ['apple', 'grape', 'pear']
  const fruitBasket = {
    apple: 27, 
    grape: 0,
    pear: 14 
  }
  console.log("start");
  
  
  
  
  async function getNumFruit(fruit) {
     console.log("iside")
    return sleep(1000).then(v =&gt; fruitBasket[fruit])
  }
  
  async function test(){
      console.log("inside test");
  
    for(i=0;i++;i&lt;fruitsToGet.length){
    console.log("start2");
  
      const fruit = fruitsToGet[index]
      const numFruit = await getNumFruit(fruit)
      console.log(numFruit)
  
    }
    return "done";
  }
  var result = test();
  console.log(result)
  
  console.log("end!!!!!")
  </code></pre>
  
  <p>can someone help me understanding what I am doing wrong here!</p>