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
- In the context of Node, what is a
module
? - A module is similar to a class in Ruby. It encapsulates a chunk of code that has related functions. Needs to be exported if it wil be used in a different file from the one it is defined in.