Problem Statement
Return type of an async function is…
Explanation
Every async function returns a Promise. If you return a value `T`, TypeScript wraps it as `Promise<T>`. If you throw, the promise rejects.
Code Solution
SolutionRead Only
async function add(a: number, b: number) { return a + b; }
// type: (a:number,b:number)=> Promise<number>