Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.
Instruction
Build the createTokens() Method
Assignment:
- Inside the Player class, write a method called
createTokens()
using the guidelines and requirements below. - In the Player class constructor method, change the value of the tokens property from an empty array to a call to the
createTokens()
method. - When you call the
createTokens()
method pass in the integer 21, for the number of tokens to be created.