课程: JavaScript: Five Advanced Challenges and Concepts

免费学习该课程!

今天就开通帐号,24,700 门业界名师课程任您挑!

Advanced Solution: Users managing other users

Advanced Solution: Users managing other users

(electronic music intro) - [Instructor] This challenge builds on the previous one by adding some much needed features to our library. Namely, a librarian who can manage users and loan and receive books, and users who can borrow books, return books, and be suspended if they don't return their books. In the answer code, you'll find our book class fully built out, the fiction class fully built out, and the non-fiction class fully built out. You'll also find the library class that has all the pieces from the previous chapter, but there's some pieces missing here that we need to build out, including an add user method, a find user method, a set librarian method, and below that we have a new set of classes. We have a library user class that has all of the users of the library. For each library user, they have a borrowed books array that signifies what books they currently hold. And then we have a librarian class that extends the…

内容