Title / Description
Code 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);
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code