many times for many reason programmers have some mistakes. No matter how great they are at programming. A script “dies” (immediately stops) in case of an error. But there’s a syntax construct try...catch that allows us to “catch” errors so the script can, instead of dying, do something more reasonable. — The try...catch construct has two main blocks: try, and then catch: try { // code… } catch (err) {