Node.js 6.6.0 added a sporadically useful bug/feature: logging unhandled promise rejections to the console by default. In other words, the below script will print an error to the console: By virtue of the event loop, scheduling tasks in Node.js is relatively straightforward.
Full article