Hướng dẫn thử thách
1 / 55
Step 4
To populate the forum leaderboard with data, you will need to request the data from an API. This is known as an <dfn>asynchronous</dfn> operation, which means that tasks execute independently of the main program flow.
You can use the `async` keyword to create an asynchronous function, which returns a promise.
```js
const example = async () => {
console.log("this is an example");
};
```
Use the `async` keyword to create an asynchronous arrow function called `fetchData`.
Vượt qua bài kiểm tra hiện tại để mở khóa bài tiếp theo.
main.go
UTF-8 • Tab Size: 2Kiểm tra bài:⌘↵