Created
January 11, 2018 16:20
-
-
Save scriptonian/8ae5f80d6e3a4fd07c31e19e08c4f65f to your computer and use it in GitHub Desktop.
This file contains 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
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