Myvideo

Guest

Login

Im Ditching Try/Catch for Good!

Uploaded By: Myvideo
16 views
0
0 votes
0

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: My Courses: Patreon: Twitter: Discord: GitHub: CodePen: ⏱️ Timestamps: 00:00 - Introduction 00:24 - Starting Code 01:12 - Bad Error Hand ... #WebDevSimplified #webdevsimplified #try_catch #try_catch_js #try_catch_ts #typescript_typed_errors #ts_error_typing 20241015 AdmGHwvgaVs

Share with your friends

Link:

Embed:

Video Size:

Custom size:

x

Add to Playlist:

Favorites
My Playlist
Watch Later