Saturday, April 9, 2011

This is what ":" do!

var o = {
    r: 'some value',
    t: 'some other value'
};
above means, this.

var o = new Object();
o.r = 'some value';
o.t = 'some other value';

No comments:

Post a Comment