Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
var book = {
tarzan : { publisher: "Pub A", author: "Author A", pageCount: 300},
"hidden universe" : { publisher: "Pub B", author: "Author B", pageCount: 1000},
addBook : ....,
removeBook : function(name) {
var temp = this[name];
delete this[name];
return temp;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment