Created
July 3, 2020 14:22
-
-
Save JohnMurray/8bac01e1198b994be53c2fca941faf97 to your computer and use it in GitHub Desktop.
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 addX(x) { | |
return (n) => { | |
return n + x; | |
} | |
} | |
const addFive = addX(5); | |
addFive(10); | |
// returns 15 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment