Error handling, "try...catch" - The Modern JavaScript Tutorial
https://javascript.info/try-catch
WEBThe “try…catch” syntax. The try...catch construct has two main blocks: try, and then catch: try { } catch ( err) { } It works like this: First, the code in try {...} is executed. If there were no errors, then catch (err) is ignored: the execution reaches the end of try and goes on, skipping catch.
DA: 95 PA: 28 MOZ Rank: 100