MaketRandevu/data/scripts/jsdoc/test/fixtures/exports.js
2013-05-20 17:21:58 +00:00

15 lines
345 B
JavaScript

/**
* An example of a server-side JavaScript module.
* @module hello/world
* @example
* var g = require('hello/world').sayHello('Gracie');
*/
/**
* Generate a greeting.
* @param {string} [subject="world"] To whom we greet.
* @returns {string}
*/
exports.sayHello = function(subject) {
return 'Hello ' + (subject || 'World');
};