/cf_task_1

Code Fellows Challenge #1

Primary LanguageJavaScript

cf_task_1

Task:

Use object-oriented JavaScript to model a public library (w/ three classes: Library, Shelf, & Book). The library should be aware of a number of shelves. Each shelf should know what books it contains. Make the book object have "enshelf" and "unshelf" methods that control what shelf the book is sitting on. The library should have a method to report all books it contains.