Last active
October 22, 2018 23:55
-
-
Save kbk0125/b7c47770d4c7baf27a0ca3427b2b8957 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
function packBox(item){ | |
console.log('Put ' +item+ ' in the box'); | |
function addressPackage(address){ | |
console.log('Addressed the box to ' +address+' and ready to send the '+item+' gift'); | |
} | |
return addressPackage; | |
} | |
let brotherGift= packBox('jersey') | |
brotherGift('123 Main Street, Anywhere USA 012345') | |
//Put jersey in the box | |
// Addressed the box to 123 Main Street, Anywhere USA 012345 and ready to send the jersey gift |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Kevin,
Great article 👍
A little bit of ES2015 magic.
Can be