Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.