Thanks for pointing this out… I just edited the article, and integrated your code sample into the explanation ... I’m still learning a lot of this myself and these types of comments always help.

There is no way to test but question is though… is that still what would happen with ES10 catch (error)-less code? Douglas Massolari. (Isn’t that the whole point of new syntax? being able to explicitly return true?) Although I might be completely off on this one. Just sayin’.

Written by

Issues. Every webdev has them. Published author of CSS Visual Dictionary few others…

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store