-
-
Save mpalpha/825ce9e34c55c91c5fc85409d9ba76fb 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 packBox(item){ | |
// Code that puts item in the box | |
console.log('Put ' +item+ ' in the box'); | |
function addressPackage(address){ | |
// Code that writes the address label | |
console.log('Addressed the box to ' +address+' and ready to send the '+item+' gift'); | |
} | |
return addressPackage; | |
} | |
var 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