train
to
code
YouTube
TypeScript Async and Promises Quiz
Question 1
How do you type an async function that returns a string?
`async function f(): string`
`async function f(): Promise<string>`
`function f(): async string`
`async string function f()`