Skip to content

Instantly share code, notes, and snippets.

@jeneve
Forked from rrgayhart/require-1602.markdown
Last active July 7, 2016 02:25
Show Gist options
  • Save jeneve/ecaa27492e6d58928c38eef6fefdce80 to your computer and use it in GitHub Desktop.
Save jeneve/ecaa27492e6d58928c38eef6fefdce80 to your computer and use it in GitHub Desktop.
The Concept of Require
  • In the context of Node, what is a module?
A module is the functions and variables in one file made available to another file. They are exported from one file and required in the other.
  • The code examples from the second blog post look very different from the first. Why?
The second blog post is about require.js, a library which provides syntax for requiring modules. The poster is demonstrating the use of the syntax so it looks different from the out-of-the-box syntax normally used for this.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment