Created
November 14, 2019 15:34
-
-
Save johnpapa/58ff144cd8c7f477a8008e1c24651b0f to your computer and use it in GitHub Desktop.
Function expressin or declaration
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 expression | |
const getThing1 = function(search: string) { | |
return getThingy(search); | |
}; | |
// Function declaration | |
function getThing2(search: string) { | |
return getThingy(search); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment