Skip to content

Instantly share code, notes, and snippets.

@Layzie
Created November 1, 2012 09:17
Show Gist options
  • Save Layzie/3992664 to your computer and use it in GitHub Desktop.
Save Layzie/3992664 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