Skip to content

Instantly share code, notes, and snippets.

@Eli-Goldberg
Created March 29, 2017 13:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Eli-Goldberg/947bac28f12c7070b36aad667cb9b199 to your computer and use it in GitHub Desktop.
Save Eli-Goldberg/947bac28f12c7070b36aad667cb9b199 to your computer and use it in GitHub Desktop.
Node style callbacks
fs.readFile('/foo.txt', function(err, data) {
// TODO: Error Handling Still Needed!
console.log(data);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment