Open this example in the interactive library
Source code
const read = async () => ({ id: 7 });
console.log(await read());
Sample output
{ id: 7 }
Await a resolved value. A self-contained example using the JavaScript runtime.
Open this example in the interactive library
const read = async () => ({ id: 7 });
console.log(await read());
{ id: 7 }