Hi,
What is the best way to display the contents of an array so each item starts
on its own line?
I have an array which gets populated during the course of a Hi - Lo fashion
guess game. Each item has a code.
[AS]
////create the array
itemsWon = new Array();
//When the user gets a guess correct, the code goes into //the itemsWon array.
//add stuff into array.
itemsWon.push(aCode);
//At the end of the game the itemsWon array will contain //quite a few codes. My question is how would I display //the codes as follows;
You have won the following items.
aCode
aCode1
aCode2
aCode3
aCode4
[/AS]
And at the end of the game when the user has the option to play again, what
is the best way to empty the array so as to start again?
Thanks
Lel