Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.


Build the createTokens() Method


  1. Inside the Player class, write a method called createTokens() using the guidelines and requirements below.
  2. In the Player class constructor method, change the value of the tokens property from an empty array to a call to the createTokens() method.
  3. When you call the createTokens() method pass in the integer 21, for the number of tokens to be created.