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
Now that we've added the `out()` setter method and refactored our `checkOut()` and `returnBook()` methods, let's see how they work in this demonstration.
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
If you need it, I've attached a new
Workspace to this video that includes
0:00
the most up to date code.
0:00
Once you've got your Workspace open,
navigate to the index.html file.
0:01
I'd like to see how our checkout and
0:06
return book methods are working with
the addition of our out setter method.
0:08
So first, let's log the patron object to
refresh our memory about what's inside.
0:12
Now let's save, preview, and use our
dev tools to check out the console.
0:21
Let's click this little arrow to dial
down into the logged patron object.
0:26
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