Open mrmikemcguire opened 8 years ago
@gabesullice In the dealer.js file, you have these lines:
Dealer.prototype = { deal: function (player, deck, table) { card = deck.unshift(); player.hand.push(card); table.addCard(card, player); return this; }
Without an argument, won't unshift() just return the length of the array?
Solved by #3, and #5
@gabesullice In the dealer.js file, you have these lines:
Without an argument, won't unshift() just return the length of the array?