JavaScriptDocumentor
Posted: Wed Mar 28, 2007 6:45 am
Google doesn't seem to think it exists, is that true?
Are there any documentation/commenting conventions for Javascript?
What do you do?
For now I'm doing things like this:But I'm quite sure "mixed" is very PHP specific term, so can anyone suggest anything better?
Are there any documentation/commenting conventions for Javascript?
What do you do?
For now I'm doing things like this:
Code: Select all
/**
* Returns the value of a single randomly choice element from specified array
*
* @param Array choices to pick from
* @return Mixed
*/
var pickFromArray = function(choices)
{
return choices[Math.round(Math.random() * (choices.length - 1))];
}