//sample solution
//this array will contain two arrays when you are done - one for
//each player
var hands = [];
//first we assign the array representing the first player's cards
//to the first index of the array
hands[0] = [5,"A",3,"J",3];
//Now you should assign another hand of 5 cards to the second index
//of the array. That will represent the 2nd player's hand
hands[1] = [2,"K",4,"Q",5];
//test
console.log(hands);
No comments:
Post a Comment