blob: 536197b68661dc37dc5e30480a19be103d318f59 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// Check that we can use the async keyword.
async function main() {
await new Promise((resolve) => {
console.log("2");
setTimeout(resolve, 100);
});
console.log("3");
}
console.log("1");
main();
|