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
Join me in this demo to use the code we've written so far and see the inner workings of our new Library, Patron, and Book objects.
Arguments for Book Object
'Harry Potter and the Sorcerer\'s Stone', 'J.K. Rowling', '978-0439708180'
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
attached it to this video so
you can follow along with what I'm doing.
0:00
If you prefer to use the workspace
you've already opened, that's fine too.
0:02
Inside the attached workspace, you
should see three files you've worked in.
0:06
Library.js, Book.js and Patron.js.
0:09
You'll also see an index.html file.
0:14
The html file is just for
testing purposes.
0:18
If you open it up you'll see
it's mostly empty except for
0:21
that I've used script tags to load
all of our individual class files.
0:23
At the bottom of the document
I included another script tag.
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