Last active
September 17, 2018 04:00
-
-
Save momenbasel/d9a4ce0d4baf74975bb0d8d151b61ae2 to your computer and use it in GitHub Desktop.
A demo to demonstrate callback hell on js
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
const fs = require('fs'); | |
fs.readFile('file.js', (err,data) => { | |
if (err) return console.error(err); | |
console.log(data.toString()); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment