← Fullstack with Vue.jsQuestion 5 of 62
What happens if you forget to use await before calling an async function?
📘 Explanation
Without await, you simply get back the Promise object itself rather than its resolved value, and the rest of your code keeps executing before that Promise settles. The function still runs, JavaScript doesn't resolve Promises synchronously, and no error is thrown just because you omitted await, so the other options are incorrect.
Related questions
← PreviousNo login needed