Slide 38
Slide 38 text
// Define a new module, the file name will be set as the id
define(
// Module dependencies
['debug/log', 'helpers/toArray', 'serialization/json/parse'],
// Module implementation
function(log, toArray, parseJSON) {
function lorem() {
log('I am an AMD module!');
}
return {
lorem: lorem
}
}
);