So, try...catch can only handle errors that occur in valid code.
If an exception happens in “scheduled” code, like in setTimeout, then try...catch won’t catch it
The finally clause works for any exit from try...catch. That includes an explicit return.
For all built-in errors, the error object has two main properties: name Error name. For instance, for an undefined variable that’s "ReferenceError". message Textual message about error details.
Glasp is a social web highlighter that people can highlight and organize quotes and thoughts from the web, and access other like-minded people’s learning.