Created
March 29, 2017 13:49
-
-
Save Eli-Goldberg/947bac28f12c7070b36aad667cb9b199 to your computer and use it in GitHub Desktop.
Node style callbacks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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