FeaturesPluginsDocs & SupportCommunityPartners
/*
 * Comment example.
 */

var global = "str";

ClassName.prototype.test = function (parameter) {
    var number = 1234 + parameter;
    var str = "String\n";
    var regExp = /[a-z]*\.HTML/;
    var array = [[1, {x:1, y:2}], [2, {x:3, y:4}]]
    var a = new Array(10);
    return this.name + '_' + global; // line comment
}

function max(arguments) {
    var m = Number.NEGATIVE_INFINITY;
    // Loop through and remembering the biggest
    for (var i = 0; i < arguments.length; i++) {
        if (arguments[i] > m) m = arguments[i];
    }
    return m;
}

Companion
Projects:
MySQL Database Server   Open JDK: an Open SourceJDK   GlassFish Community: an Open Source Application Server    Mobile & Embedded Community    Open Solaris   java.net - The Source for Java Technology Collaboration   Virtual Box - full virtualizer  Open ESB - The Open Enterprise Service Bus Powered by