Creating Custom Errors in JavaScript

preview_player
Показать описание
If you wanted to dive into the world of custom error handling with JavaScript, you can do so by creating your own custom errors. These will allow you to describe your errors specific to the application you are developing.

The example used in this video creates a custom error if a person (object) is not over the age of 21.

Support me on Patreon:

For your reference, check this out:

Follow me on Twitter @dcode!

If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!
Рекомендации по теме
Комментарии
Автор

Can you please tell me what keyboard and switches is this? Sounds amazing!

Schweppese
Автор

wow people in the comments asking literally about everything but the topic of the video LMAO. Guess that means it was explained well

turolretar
Автор

It would be nicer, in case you give some more information about Error object in JS. That is what i am looking for

MakIvaNik
Автор

"in most countries if you wanna drink alcohol, you gotta be 21"
Do americans just assume that american laws are universal or what?

adam