js/app.js
// Resets all of the turn variables and deals the initial four cards
Resets all of the turn variables and deals the initial four cards
Resets all of the turn variables and deals the initial four cards
function initialDeal() {
  playerCards.innerHTML = '';
  dealerCards.innerHTML = '';
  player.handArray = [];
  player.handTotal = 0;
  dealer.handArray = [];
  dealer.handTotal = 0;
  deckArray = [];
  buildDeck(); 
  getCard(player, playerCards);
  getCard(dealer, dealerCards);
  getCard(player, playerCards);
  getCard(dealer, dealerCards);
  turnTotal(true);
}
function initialDeal ( ) { playerCards . innerHTML = '' ; dealerCards . innerHTML = '' ; player . handArray = [ ] ; player . handTotal = 0 ; dealer . handArray = [ ] ; dealer . handTotal = 0 ; deckArray = [ ] ; buildDeck ( ) ; getCard ( player , playerCards ) ; getCard ( dealer , dealerCards ) ; getCard ( player , playerCards ) ; getCard ( dealer , dealerCards ) ; turnTotal ( true ) ; }
Resets all of the turn variables and deals the initial four cards
Resets all of the turn variables and deals the initial four cards
//eslint-disable-line