medium10 pts · first answer countsasync-javascriptpromises
What an async function returns
What does this print?
async function getName() {
return 'Ana'
}
const n = getName()
console.log(n instanceof Promise, typeof n)Discussion 0
Join free to post in the discussion.
Related questions
- Resolving a promise twiceFrontend Developer
- What .then returnsFrontend Developer
- Results of Promise.allSettledFrontend Developer
- race versus anyFrontend Developer
- Hiding a spinner with finallyFrontend Developer
- A rejection nobody handlesFrontend Developer
- One failed request breaks the dashboardFrontend Developer
- When the executor runsFrontend Developer