Handling errors is the difference between professional application and one who left user staring at the frozen screen. In javascript things will go wrong - apis will fails, user will provide creative inputs, and variables will be undfined Here is the in depth guide to managing the chaos using try, catch, finally, and custom errors. Content List What errors are in JavaScript Using try and catch