Skip to content

Instantly share code, notes, and snippets.

@dzenkovich
Created October 21, 2013 07:37
Show Gist options
  • Save dzenkovich/7079968 to your computer and use it in GitHub Desktop.
Save dzenkovich/7079968 to your computer and use it in GitHub Desktop.
JS Core: Task 2. Objects Session
(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