Im Ditching Try/Catch for Good! @WebDevSimplified
Im Ditching Try/Catch for Good!  @WebDevSimplified
Uploaded October 2024 | Updated November 2026, 3 hours ago
The try/catch block is a staple of JavaScript, but it leaves a lot to be desired (especially when working with TypeScript). None of the errors are typed, it adds an extra level of block scoping which can make certain code difficult to write, and it catches all errors (not just the ones you want). That is why in this video I will show you 3 alternatives to try/catch that I much prefer.


🌎 Find Me Here:

My Blog: blog.webdevsimplified.com
My Courses: courses.webdevsimplified.com
Patreon: patreon.com/WebDevSimplified
Twitter: twitter.com/DevSimplified
Discord: discord.gg/7StTjnR
GitHub: github.com/WebDevSimplified
CodePen: codepen.io/WebDevSimplified


⏱️ Timestamps:

00:00 - Introduction
00:24 - Starting Code
01:12 - Bad Error Handling
03:36 - Basic Fix
06:11 - Advanced Fix


#ErrorHandling #WDS #TypeScript
Im Ditching Try/Catch for Good!The NEW React Activity Component Is a Game Changer for PerformanceNew CSS Property corner-shape Is AmazingHow To Handle Data Access Like a Senior Dev63 VSCode Keyboard Shortcuts I Use DailyNo One Knows About This Amazing CSS Dev Tools Panel (CSS Overview)If You Use Tailwind You Need This PluginI Wish This Was BetterI Cannot Believe Abort Controller Can Do ThisYou are a Junior Dev if You Don’t Know These 18 TypeScript Utility TypesThis Simple Dev Tools Feature Makes Working On Teams Much EasierMy Honest Thoughts on AI and the Job Market in 2026
Web Dev Simplified |

I'm Ditching Try/Catch for Good!

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER