Creating your own custom Syntax Errors in Javascript! (SyntaxError)

preview_player
Показать описание
For a bit of fun, today we are looking at making your own custom SyntaxError objects in Javascript - I bet a lot of you didn't know you could do something like this! ;)

Here is what inspired me to make this video:

It's probably useless most of the time, but still interesting to know!

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 think of any scenarios where this would be useful?

dcode-software