Skip to content

Instantly share code, notes, and snippets.

@itzsaga
Created February 28, 2017 04:11
Show Gist options
  • Select an option

  • Save itzsaga/2b56d1211f0f5ba2e2e6009a1fa3218f to your computer and use it in GitHub Desktop.

Select an option

Save itzsaga/2b56d1211f0f5ba2e2e6009a1fa3218f to your computer and use it in GitHub Desktop.
Basic arrow function example
var regularFunction = function() {
console.log('I was called!')
}
var arrowFunction = () => {
console.log('I was called, too!')
}
regularFunction() // 'I was called!'
arrowFunction() // 'I was called, too!'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment