For commenting functions, you can use the following jsdoc style documentation,
/** * Adds two numbers * @param {Number} a * @param {Number} b * @return {Number} sum */ function sum(a,b) { return a + b; }
For commenting functions, you can use the following jsdoc style documentation,
/** * Adds two numbers * @param {Number} a * @param {Number} b * @return {Number} sum */ function sum(a,b) { return a + b; }