In this i have 3 arrays one with suits and other with cards and third with values, i have to create a 2D array with card and assign a value like ♠A, 14
var deck = [];
function build() {
var suits = ["♠ ", "♥", "♣", "♦"];
var name = [2,3,4,5,6,7,8,9,10,"J","Q","K","A"];
// now create a 2 dim array with each individual array representing a card..
var value = [2,3,4,5,6,7,8,9,10,11,12,13,14];
for(var i=0; i<suits.length; i++){
for(x=0; x<name.length; x++)
{ deck[x]=[2];
deck.push(suits[i]+name[x]);
}
}
}