Skip to content

Instantly share code, notes, and snippets.

@davidguttman
Last active June 11, 2018 17:11
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 davidguttman/704ec0baac7d64e34ebb94cc553ebc9a to your computer and use it in GitHub Desktop.
Save davidguttman/704ec0baac7d64e34ebb94cc553ebc9a to your computer and use it in GitHub Desktop.
Top vs Bottom Exports
function boilPotatoes () {}
function mashPotatoes () {}
function cookTurkey () {}
function carveTurkey () {}
function preparePotatoes () {
boilPotatoes()
mashPotatoes()
}
function prepareTurkey () {
cookTurkey()
carveTurkey()
}
function makeDinner () {
prepareTurkey()
preparePotatoes()
}
module.exports = makeDinner
module.exports = function makeDinner () {
prepareTurkey()
preparePotatoes()
}
function prepareTurkey () {
cookTurkey()
carveTurkey()
}
function preparePotatoes () {
boilPotatoes()
mashPotatoes()
}
function cookTurkey () {}
function carveTurkey () {}
function boilPotatoes () {}
function mashPotatoes () {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment