Created
April 19, 2018 17:01
-
-
Save laniehei/7acfd8fad27c8e7ab6d1e77b88652b2d 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 createBase(n) { | |
return function addSix(m) { | |
return n + m; | |
} | |
} | |
var addSix = createBase(6); | |
addSix(10); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment