Error Handling with try...catch

Error handling allows you to handle errors without crashing the application.
Basic syntax: try { code_that_might_fail } catch (error) { error_handling }

Basic Example

try {
    let nonexistentObject = null;
    console.log(nonexistentObject.property);
} catch (error) {
    console.log(