Skip to content

Instantly share code, notes, and snippets.

@mhoffman
Created July 11, 2018 02:42
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
// 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