Skip to content

Instantly share code, notes, and snippets.

@schan90
Forked from Layzie/jsdoc.coffee
Created September 20, 2017 16:26
Show Gist options
  • Save schan90/5131a5661b4cd70ec66ad22720cccb71 to your computer and use it in GitHub Desktop.
Save schan90/5131a5661b4cd70ec66ad22720cccb71 to your computer and use it in GitHub Desktop.
### define function variable before block to avoid code being appended to closing part of JSDoc comment ###
cube = ''
###*
* Funtion to calculate cube of input
* @param {number} Number to operate on
* @return {number} Cube of input
###
cube = (x) -> x*x*x
/* define function variable before block to avoid code being appended to closing part of JSDoc comment */
var cube;
cube = '';
/**
* Funtion to calculate cube of input
* @param {number} Number to operate on
* @return {number} Cube of input
*/
cube = function(x) {
return x * x * x;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment