Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Laner12/4ed75a1c5663b9005b7be677d22fb65d to your computer and use it in GitHub Desktop.
Save Laner12/4ed75a1c5663b9005b7be677d22fb65d to your computer and use it in GitHub Desktop.

Deliverable

  • Read Node.js, Require and Exports and Organize Your Code with RequireJS
  • Fork This Gist
  • Respond in your forked gist with answers to the following questions
    • In the context of Node, what is a module?

      • A module in Node from my understanding, is a function that wraps other functions and basically copies/mimics the functionality and imports it into another file in order to be used as intended.
    • The code examples from the second blog post look very different from the first. Why?

      • From my understanding of the article, the second is utilizing a work around for the module.exports syntax. It also seems that these examples are not just stand alone js constructor funcitons but files inside a framework similar to rails.

Additional Resources

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