Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
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 upRelated 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