mirror of
https://github.com/documentationjs/documentation.git
synced 2026-01-18 14:17:30 +00:00
19 lines
357 B
JavaScript
19 lines
357 B
JavaScript
/**
|
|
* Adds one to a number
|
|
* @param {number} a the input
|
|
* @returns {number} the output
|
|
*/
|
|
function addOne(a) {
|
|
return a + 1;
|
|
}
|
|
|
|
/**
|
|
* This function returns the number one. Internally, this uses
|
|
* {@link addOne} to do the math.
|
|
* @param {number} a the input
|
|
* @returns {number} numberone
|
|
*/
|
|
module.exports = function (a) {
|
|
return addOne(a);
|
|
};
|