Last active
November 4, 2015 08:50
-
-
Save lesniakania/fbea579f0149c3709301 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// calculator.js | |
define({ | |
sum: function(a, b) { | |
return a + b; | |
} | |
}); | |
// app.js | |
define(["./calculator"], function(calculator) { | |
console.log(calculator.sum(1, 2)); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment