The EASY Way to Handle Errors in JavaScript (For Beginners)

preview_player
Показать описание


🔴 LOOKING FOR THE CODE? 🛠️

Join me as I teach you several topics related to Try, Catch and Finally Blocks such as:

👉 What is a Try Statement
👉 What is a Catch Statement
👉 What is a Finally Statement
👉 Their Syntax and several Use Cases
👉 How to Rethrow Errors
👉 How to throw Custom Errors
👉 What is Destructuring & How do we use it?
👉 Why it's important to know and understand these Statements!

👇 FOLLOW ME HERE:

💰 WANT TO SUPPORT THE CHANNEL?

🕐 TIMESTAMPS:
00:00 Introduction
00:13 Introduction to Errors
00:53 Try, Catch and Finally Block Syntax
03:04 Example #1 (Throwing a Custom Error)
05:05 Example #2 (Rethrowing a Error)
06:46 Example #3 (Finally Block)
08:26 Example #4 (Not using the Catch Block)
09:16 Example #5 (Exception Handling in a Timed Function)
11:31 Lesson Summary
11:48 Outro

Let’s get it PAPAFAM 🔥.

#javascript #tutorial #beginner #errorhandling
Рекомендации по теме
Комментарии
Автор

Thanks papa fam sir ❤ you are great teacher as well as good programer i learned many things from you ❤❤

tauqeerhusain
Автор

im learning backend and this is perfect for writing endpoints

ceejGU
Автор

I found the video very useful. Would it be possible to do a video with a more complex structure using Next.js 13 and making debugging? This would help a lot since I regularly get stuck with errors and I don't know how to handle those errors or interpret them. Thank you!

patite
Автор

Exactly what I was looking for, thank you! :D. And as a sidenote, you're editor theme looks neat, what theme is it?

kajetankowalski
Автор

i would like to see a full stack video on hasura, graphql, supabase and nextjs pls

daring
Автор

Please make an advance level error handling video in a React app, handling errors according to different http response statuses with some efficient advance way. Curious. Thanks for this video.

aniketbhalla
Автор

Can you make a video on how to setup env vaariable inside a react native expo app for both development and when the app is pushed for production to the app stores.

mustaneerhaider
Автор

I must say try~catch block should be used when you have async await syntax

jamshediqbal
Автор

​plz make full stack Netflix clone in React native

usmanmarkaz
Автор

Giving example of try-catch for type errors instead of recommending using typescript seems strange.

coolemur
Автор

Error: Invalid parameter in getDocument, need either Uint8Array, string or a parameter object
this error is coming up again while parsing pdf to text
// let buffer = req.file.buffer;
// console.log(buffer);
// await pdfParse(buffer).then((data) => {
// console.log(data.text);
// res.status(200).send(data.text, 'PDF file uploaded and converted to text');
// })
where have I made the mistake?

nikhiltiwari