JavaScriptDocumentor

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

JavaScriptDocumentor

Post by Ollie Saunders »

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:

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))];
}
But I'm quite sure "mixed" is very PHP specific term, so can anyone suggest anything better?
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post by Benjamin »

IMHO you have lost your mind but I'm probably confused.
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Post by Ollie Saunders »

What makes you say that?
Post Reply