Created
March 18, 2017 23:50
-
-
Save twhite96/35879ad5ae14df31d25aaf8b0891737e to your computer and use it in GitHub Desktop.
Same Thing
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
//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