Thursday, February 12, 2015

JavaScript Patterns

http://shichuan.github.io/javascript-patterns/











var a = 1
    , b = 2
    , sum = a + b
    , myobject = {}
    , i
    , j;

var global = (function () {
    return this || (1, eval)('this');
}());

var getData = function getData () {
};


No comments:

Post a Comment