-
-
Save storuky/908c4a1efc1ca1fb09099283592ad0b6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
const { log } = console; | |
const foo = word => { | |
const bar = word => setTimeout(() => log(word), word.length) | |
bar(word); | |
return bar; | |
} | |
const fn = foo("Ashley")("Larry"); | |
log("Moe"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment