mirror of
https://github.com/documentationjs/documentation.git
synced 2025-12-08 18:23:43 +00:00
* build: Use Flow syntax without comments. We're switching to Flow annotations - not Flow comments. This gives documentation.js the ability to self-document without JSDoc types and improves our compatibility with tools like prettier. Fixes #729. Fixes #709
14 lines
246 B
JavaScript
14 lines
246 B
JavaScript
/**
|
|
* This function returns the number plus two.
|
|
*
|
|
* @param {Number} a the number
|
|
* @returns {Number} numbertwo
|
|
* @example
|
|
* var result = returnTwo(4);
|
|
* // result is 6
|
|
*/
|
|
function returnTwo(a) {
|
|
// this returns a + 2
|
|
return a + 2;
|
|
}
|