Advertisement
728x90
The easiest and safest way to ignore promise errors is void that error. This approach is ESLint friendly too.
js
1await promise.catch((e) => void e);Advertisement
Responsive Ad
🎯 Practice NowRelated Challenge
JavaScript Coding Exercise 83
Test your knowledge with this interactive coding challenge.
Start CodingAdvertisement
728x90
426of476