JS Built-ins
AsyncPatternsbeginner

async arrow function returns Promise

πŸ“– Usage Example
const greet = async () => 'hello';
greet() instanceof Promise; // true

Async arrow functions also always return a Promise.

Async Arrow Functions

const f = async () => 99 is an async arrow function. It also returns a Promise.

Challenge: Verify that an async arrow function returns a Promise.

πŸ’‘ Hints (2)
  • β€’ Async arrow functions work the same as async regular functions.
  • β€’ They return Promises.