Created
October 21, 2013 07:37
-
-
Save dzenkovich/7079968 to your computer and use it in GitHub Desktop.
JS Core: Task 2. Objects Session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
//initializing an object to add to session storage or cookies | |
var person = { | |
name: 'Anastasia', | |
lastname: 'Tayanovskaya', | |
birth: { | |
day: 10, | |
month: 'September', | |
year: 1989 | |
} | |
}, | |
key = 'person'; //key name for the object | |
sessionDataManager.addObject(key, person); //add tbe object to the session storage or to the cookies | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment