Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Practice Object Interaction!
You have completed Practice Object Interaction!
Preview
Try out the `addPatron()` and `addBooks()` methods we wrote in this demo.
This video doesn't have any notes.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
We'll call them on our library object, and
0:00
then use Chrome's dev tools to take a look
at how that library object has changed.
0:00
You'll notice I attached another
work space to this video.
0:04
This new one has
the completed add book and
0:07
add patron methods added
to the library class.
0:09
Open up the work space and
let's get started.
0:12
I'm gonna head to my index.html file.
0:15
The book, patron and library objects
we created previously are still there.
0:18
We'll use these objects now.
0:22
Since we already have a book
object created, we can try
0:24
adding it to the library objects book
property using our new addBook method.
0:27
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up