题目1
async function getData() {
return await Promise.resolve('新年快乐!')
}
getData().then(res => console.log(res))
题目2
async function getData() {
return await Promise.resolve('新年快乐!')
}
const data = getData()
console.log(data)
第3题
const firstList = ["新", "年", "快"];
({ item: firstList[3] } = { item: "乐" });
console.log(firstList);