30 Days of Node.js – Day 5

Today’s lesson was about error handling in Node.js. I’ve learned how to propagate errors as well as how to define error callback functions. I also learned that try & catch statements cannot be used within asynchronous functions. Today’s code can be found on https://github.com/nielslange/30-days-of-node-js/tree/master/Day%2005%20-%20All%20about%20errors. References: https://nodejs.org/api/errors.html https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/try…catch