Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.

Instruction

Solution: Building Constructor Methods

Constructor Method for Library Class

The constructor method for the Library class (located inside the class declaration in the Library.js file) initializes two properties: books and patrons.

These properties are initialized to empty arrays inside the constructor method and no values are passed in.

Eventually, the addBook() and addPatron() methods we will write later on wi...