Welcome to the 45th Easy JavaScript tutorial, part of EasyProgramming.net. Let's look a little more into try...catch by looking at the throw function which you can use to include your own custom error messages.
Custom errors can be defined by you based on logic that you've entered. You don't have to rely on the 5 basic errors that JavaScript tends to throw, make up your own!
To fork the fiddle and follow along: [ Ссылка ]
For more information, please visit [ Ссылка ] to view my other programming tutorials! Find videos of C++ tutorials, Excel tutorials, and JavaScript Tutorials.
I hope you enjoy the video and if you have any questions, please ask in the comments below. If you have any requests feel free to let me know. Thanks for watching and remember to subscribe!
-----------
Subscribe on YouTube: [ Ссылка ]
Support me on Patreon: [ Ссылка ]
Follow me on Twitter: [ Ссылка ]
Like me on Facebook: [ Ссылка ]
Follow me on Google+: [ Ссылка ]
Check out my Github: [ Ссылка ]
Ещё видео!