At most console.log or console.error can print the error, it will not stop it. catch allows
to prevent error from crashing application, and gives ability to decide what to do when error is encountered. Printing to console is just one of possible choices.