BLACKJACK
Code Explanation
} Closes the function
function swapindeck(j,k) { Helper function for the swapping
var hold = new MCard(deck[j].num,deck[j].
suit,deck[j].picture.src);
Saves the card in position j
deck[j] = deck[k]; Assigns the card in the k position to
the j position
deck[k] = hold; Assigns the hold to card in the k
position
} Closes the function
Closes the script element
Closes the head element
Opening tag to set the call to init
Press d for deal 1 more card,
h for hold, n for new game.
Header element containing
instructions
Closes the element
Closes the footer