Skip to content

Instantly share code, notes, and snippets.

@mpalpha
Forked from kbk0125/sendPackageBasic.js
Created December 8, 2016 15:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mpalpha/825ce9e34c55c91c5fc85409d9ba76fb to your computer and use it in GitHub Desktop.
Save mpalpha/825ce9e34c55c91c5fc85409d9ba76fb to your computer and use it in GitHub Desktop.
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