Kết quả data của đoạn code sau là gì? Hãy giải thích tại sao?
Kết quả data của đoạn code sau là gì? Hãy giải thích tại sao?
  async function getData() {
    return await Promise.resolve("I made it!");
  }
  const data = getData();
  console.log(data);
        "I made it!"Promise {<resolved>: "I made it!"}Promise {<pending>}undefinedMột hàm async luôn luôn trả về một promise. await sẽ chờ cho tới khi...
middle