Last active
December 7, 2019 20:21
-
-
Save Dromediansk/3c0cc12281a31d8441a49c2170f150fd to your computer and use it in GitHub Desktop.
closure 3
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
const handleFamily = () => { | |
const myGrandpa = 'grandpa'; | |
return sayHello = () => { | |
const myFather = 'father'; | |
return `Hello ${myGrandpa} and ${myFather}!` | |
} | |
} | |
const hold = handleFamily(); | |
hold(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment