Created
July 11, 2018 02:42
-
-
Save mhoffman/47170b69c9427cfbfb735e9afade27d8 to your computer and use it in GitHub Desktop.
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
// An Import | |
var _ = require('lodash') | |
// A function | |
const times2 = (x) => { | |
return 2 * x | |
} | |
// An Object | |
const o = { | |
foo: 'bar', | |
1: {2: 2}, | |
} | |
console.log(o) | |
// A function call | |
console.log(times2(3)) | |
// A callback | |
setTimeout(() => { | |
console.log("Hello, slow world.") | |
}, 2000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment