asf

Javascript code posted
created at 06 Jun 07:26, updated at 11 Jun 06:04

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
13
var userObject = new Object();
userObject.lastLoginTime = new Date();
alert(userObject.lastLoginTime);

(OR)

var userObject = {}; // equivalent to new Object()
userObject[âœlastLoginTimeâ] = new Date();

(OR)

var userObject = { âœlastLoginTimeâ: new Date() };
alert(userObject.lastLoginTime);
312 Bytes in 5 ms with coderay