Skip to content

Instantly share code, notes, and snippets.

@GregoryArmstrong
Forked from rrgayhart/require.markdown
Last active April 4, 2016 18:25
Show Gist options
  • Save GregoryArmstrong/11d3398bcfaa84a3446083dfce7bbd4d to your computer and use it in GitHub Desktop.
Save GregoryArmstrong/11d3398bcfaa84a3446083dfce7bbd4d to your computer and use it in GitHub Desktop.
The Concept of Require
  • In the context of Node, what is a module?

Answer: A module is essentially just a file in Node. You export what you want to be available when requiring the file.

  • The code examples from the second blog post look very different from the first. Why?

Answer: Theyre using RequireJS to add some functionality specific to their scenarios.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment