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 Object-Oriented JavaScript: Challenge!
You have completed Object-Oriented JavaScript: Challenge!
Preview
See the complete solution for the drop() method.
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
Navigate over to your token.js file.
0:00
This is the final method we'll
be adding to the token class.
0:00
Right before the }, you can see I've added
my method documentation and declaration.
0:04
This method receives two arguments,
target, and reset.
0:09
Target is the actual space object
that the token is being dropped into.
0:14
That means we can access
all of its properties and
0:18
methods inside this drop method.
0:20
Reset is a callback function.
0:23
This is added into the code for
the animation.
0:25
When the animation has finished and
the HTML token has visually dropped into
0:28
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