InterviewHubPRO
Section Overview
Q430

Question 430 of 521

Part 7: Execution Context, Functional JS & V8 Engine (404 - 463)

83%
JavaScript Internals (521 Qs)•Part 7: Execution Context, Functional JS & V8 Engine (404 - 463)

What is the easiest way to ignore promise errors?

The easiest and safest way to ignore promise errors is void that error. This approach is ESLint friendly too.

js
 await promise.catch((e) => void e);