Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
- Making the Game Interactive
- handleKeydown() Solution 1:51
- Build the moveLeft() and moveRight() Methods
- moveLeft() and moveRight() Methods Solution 5:18
- Build the drop() Method
- drop() Method Animation Challenge Solution
- drop() Method Solution 2:40
- Build the playToken() Method
- playToken() Method Solution 3:43
- Reviewing 'Making the Game Interactive' 5 questions
Well done!
You have completed Object-Oriented JavaScript: Challenge!

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
See the solution for the `moveLeft()` and `moveRight()` methods.
Code Documentation Correction
While the project files are correct, the documentation you see on screen for the getter method offsetLeft
and the moveRight()
method requires updating.
The offsetLeft
method returns a number, not a string, and the documentation should be as follows:
/**
* Gets left offset of html element.
* @return {number} Left offset of token object's htmlToken.
*/
The documentation for the moveRight()
method should include the param information:
/**
* Moves html token one column to right
* @param {number} columns - number of columns on the game board
*/
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
Apus Wsoe
7,555 Points0 Answers
-
Armend Azemi
27,921 Points1 Answer
-
Ben Bushell
8,952 Points2 Answers
-
Patricia Padilla
5,026 Points3 Answers
-
George Roberts
Full Stack JavaScript Techdegree Student 8,474 Points0 Answers
-
Julianna Kahn
20,702 Points2 Answers
-
David Aguirre
8,170 Points1 Answer
-
Vitaly Khe
7,160 Points2 Answers
-
raul montes
134 Points2 Answers
-
Richard Eldridge
8,229 Points3 Answers
View all discussions for this video
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
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