Skip to content

Instantly share code, notes, and snippets.

View charlenetshos's full-sized avatar

Charlene Tshitoka charlenetshos

View GitHub Profile
@charlenetshos
charlenetshos / asynchronous-node.js
Last active March 17, 2023 19:53
Asynchronous Node
const fs = require('fs');
console.log('About to read file content');
fs.readFile('file.md', 'utf-8', function (err, content) {
if (err) {
return console.log(err);
}
console.log('Done reading file');
console.log(content);

Keybase proof

I hereby claim:

  • I am charlenetshos on github.
  • I am charlenetshos (https://keybase.io/charlenetshos) on keybase.
  • I have a public key ASAHxbWHs7IHxKls6I3l5aryIjLS0aWuntCpjtSrdngNlQo

To claim this, I am signing this object: