error handling in call back function in nodejs

JavaScript
fs.readFile('/foo.txt', function(err, data) {
  // TODO: Error Handling Still Needed!
  console.log(data);
});

Source

Also in JavaScript: