Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: function

  1. #1
    New to the CF scene
    Join Date
    Sep 2011
    Thanked 0 Times in 0 Posts


    hi everyone,
    urgently need help,

    i have manage to declare 3 variables and then do not understand what to do in next two bullet point (in red)

    "You should complete the code for the function as follows.
    Declare a variable to hold the letters correctly guessed by the player, the ‘hits’. Initialise this string of hits to an empty string.
    Declare a variable to hold incorrect guesses. Initialise it to an empty string.
    Declare a variable and initialise it to 9, the number of lives that a player has remaining at the beginning of the game.
    Invoke the getArrayElements() function with termArray and definitionArray as arguments. You did this to test the function within a button event handler in Task 1 (v)(b). Now you are putting the function to use for the game. Assign the array that is returned to a newly declared variable, entryArray.
    Assign each of the two array elements in entryArray to newly declared variables. The first element of entryArray will be a randomly picked term and the second element will be its associated definition"


  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Halle (Saale), Germany
    Thanked 1,052 Times in 1,025 Posts
    Point 1.5 might be of interest.


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts