Skip to content

Instantly share code, notes, and snippets.

@mhoffman
Created July 11, 2018 02:42
Show Gist options
  • Save mhoffman/47170b69c9427cfbfb735e9afade27d8 to your computer and use it in GitHub Desktop.
Save mhoffman/47170b69c9427cfbfb735e9afade27d8 to your computer and use it in GitHub Desktop.
// 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