📅  最后修改于: 2022-03-11 15:02:12.112000             🧑  作者: Mango
async function someFunction() {
const j = 10;
for (let i = 0; i < j; i++) {
// wait for the promise to resolve before advancing the for loop
await asynchronousProcess();
console.log(i);
}
}