Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.
- 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!
Instruction
Build the drop() Method
Assignment:
Write a method called drop() inside the Token class in the Token.js file according to the requirements and guidelines below.
Discuss any questions or thoughts about this method in the Treehouse Community.
Requirements and Guidelines for the drop() Method
/**
* Drops html token into targeted board space.
* @param {Object} target - Targeted space for dropped token.
* @p...