Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Where Can I JavaScript

Where Can I JavaScript

Short intro presentation for codeX peeps on the idea of:

* doing JS in different places;
* types of modules.

Steve Barnett

February 29, 2016
Tweet

More Decks by Steve Barnett

Other Decks in Programming

Transcript

  1. // eam.js module.exports = function () { console.log('Hello, eam!'); }

    // app2.js var eam = require('./eam.js'); eam();
  2. // myfancyname.js exports.myfancymethod = function () { console.log('Hello, myfancyname!'); }

    // app3.js var myfancyname = require('./myfancyname.js'); myfancyname.myfancymethod();