rovan-a of Pixel's Programmer
12/29/2016 - 8:06 AM

JS Style Guide - Based on Crockford Styles - http://javascript.crockford.com/code.html#variable%20declarations

JS Style Guide - Based on Crockford Styles - http://javascript.crockford.com/code.html#variable%20declarations

// SPACE before function paranthesis

// Good Example for a function:

function outer(c, d) {
    var e = c * d;

    function inner(a, b) {
        return (e * a) + b;
    }

    return inner(0, 1);
}

// Good Example for anonymous function:

Managix.init = function (e) {
    return false;
};

// Bad

function outer (c, d) {
}

Managix.init = function(e) {
    return false;
};