Skip to content

Instantly share code, notes, and snippets.

@rrgayhart
Created March 28, 2016 11:57
Show Gist options
  • Select an option

  • Save rrgayhart/da45f67612399647eb3c to your computer and use it in GitHub Desktop.

Select an option

Save rrgayhart/da45f67612399647eb3c to your computer and use it in GitHub Desktop.
The Concept of Require

When you start working with WebPack for GameTime, you'll notice that you can't just define a variable in one file and find it in another as easily as you can in Rails.

Read Node.js, Require and Exports and Organize Your Code with RequireJS

Fork this gist and answer the following questions:

  • In the context of Node, what is a module?
  • The code examples from the second blog post look very different from the first. Why?
@slota

slota commented Mar 30, 2016

Copy link
Copy Markdown

@stevepentler

Copy link
Copy Markdown

@bethsecor

Copy link
Copy Markdown

@PenneyGadget

Copy link
Copy Markdown

@dastinnette

Copy link
Copy Markdown

@brantwellman

Copy link
Copy Markdown

@danjwinter

Copy link
Copy Markdown

@SteveOscar

Copy link
Copy Markdown

@jwperry

jwperry commented Apr 4, 2016

Copy link
Copy Markdown

@GregoryArmstrong

Copy link
Copy Markdown

@jecrockett

Copy link
Copy Markdown

@marlomajor

Copy link
Copy Markdown

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