js/app.js
// function to output the totals of the player and dealer hand to the DOM
function to output the totals of the player and dealer hand to the DOM
function to output the totals of the player and dealer hand to the DOM
function turnTotal(hideHand){
  if (hideHand){
    handTotalTracker.children[0].textContent = dealer.handArray[1].value;
  } else {
    handTotalTracker.children[0].textContent = dealer.handTotal;
  }
  handTotalTracker.children[1].textContent = player.handTotal;
}
function turnTotal ( hideHand ) { if ( hideHand ) { handTotalTracker . children [ 0 ] . textContent = dealer . handArray [ 1 ] . value ; } else { handTotalTracker . children [ 0 ] . textContent = dealer . handTotal ; } handTotalTracker . children [ 1 ] . textContent = player . handTotal ; }
function to output the totals of the player and dealer hand to the DOM
function to output the totals of the player and dealer hand to the DOM