Skip to content

Instantly share code, notes, and snippets.

@twhite96
Created March 18, 2017 23:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save twhite96/35879ad5ae14df31d25aaf8b0891737e to your computer and use it in GitHub Desktop.
Save twhite96/35879ad5ae14df31d25aaf8b0891737e to your computer and use it in GitHub Desktop.
Same Thing
//Function Declaration
function divide1(a, b) {
return a / b;
}
//Function Expression
const divide2 = function(a, b) {
return a / b;
}
//Arrow Function Expression
const divide3 = (a, b) => {
return a / b;
}
//Arrow Function Expression - concise
const divide4 = (a, b) => a / b;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment