Return to Snippet

Revision: 57455
at May 27, 2012 08:37 by grasshoper


Initial Code
var o = {
    r: 'some value',
    t: 'some other value'
};

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

Initial URL


Initial Description
Both are functionally equivalent

Initial Title
javascript colon notation :

Initial Tags
javascript

Initial Language
JavaScript