Skip to content

Instantly share code, notes, and snippets.

@Kealii
Forked from rrgayhart/require.markdown
Last active February 9, 2016 20:40
Show Gist options
  • Save Kealii/18a27c8e6c07963cc2c6 to your computer and use it in GitHub Desktop.
Save Kealii/18a27c8e6c07963cc2c6 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 a reference to a value or function stored in another file but made available for use in another file.

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

The code examples in the 2nd post are for a specific library (RequireJS) that handles javascript modules for easier requiring.

@rrgayhart
Copy link

👍

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