Skip to content

Instantly share code, notes, and snippets.

@mpj mpj/hello.js
Created May 31, 2018

What would you like to do?
const fs = require('fs')
fs.readFile('hello.txt', 'utf8', (error, content) =>
.filter(line => line.includes('dog'))
.forEach(line => console.log(line))
fluffykins is a dragon
wolfbane is a dragon
kittylunch is a cat
karo is a dog
multidog is a dog

This comment has been minimized.

Copy link

misterhtmlcss commented Jun 6, 2018

Wish you kept the finished product before you refactor. Maybe push when you finish it in the original context and then when you refactor push a new commit, then we can come here and review them side by side. That would be so awesome, because I find I learn lots by looking at them side by side.
You are a great teacher and so easy to listen too!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.