All Tracks/learn asynchronous programming by building an fcc forum leaderboard/
Đang tải...
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:⌘↵
Test Output
Thử thách này không có bài test tự động. Hãy quan sát kết quả trực tiếp ở khung Preview.