Loading the Meteor

Let’s find out how code is loaded in MeteorJS.

Default export

Files and variables must be exported before they can be imported and used elsewhere. We can do this by using the ES2015 export statement. The code snippet below exports a function called addNumbers from addition.js. ...