1. JS objects are dictionaries

Created Sunday 01 December 2013
// This
var userObject = new Object ();

userObject.lastLoginTime = new Date ();

alert (userObject.lastLoginTime);
// is equivalent to
var userObject = {};

userObject ["lastLoginTime"] = new Date ();

alert (userObject ["lastLoginTime"]);
// and to
var userObject = {"lastLoginTime": new Date ()};

alert (userObject.lastLoginTime);



Backlinks: