for await()

in demo-javascript/code/azure-search-vector-sample.js [271:279]


    for await (const answer of response.answers) {
      if (answer.highlights) {
        console.log(`Semantic answer: ${answer.highlights}`);
      } else {
        console.log(`Semantic answer: ${answer.text}`);
      }

      console.log(`Semantic answer score: ${answer.score}\n`);
    }