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:
/ dcode - with enough funding I plan to develop a website of some sort with a new developer experience!
For your reference, check this out:
https://developer.mozilla.org/en-US/d...
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!
Sur cette page du site, vous pouvez voir la vidéo en ligne Creating Custom Errors in JavaScript durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur dcode 14 janvier 2019, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 12,316 fois et il a aimé 206 téléspectateurs. Bon visionnage!