InterviewBuddy
All interview questions

In JavaScript, give an example of Promise rejection.

Intermediate

Answer

await fetchData() can throw when the Promise rejects.