面试题答案
一键面试async function printData() {
const promiseArray = await fetchData();
for await (const data of promiseArray) {
console.log(data);
}
}
async function printData() {
const promiseArray = await fetchData();
for await (const data of promiseArray) {
console.log(data);
}
}