packages/warriorjs-cli/src/ui/printTotalScore.js
function printTotalScore(currentScore, addition) {
  if (currentScore === 0) {
    printLine(`Total Score: ${addition.toString()}`);
  } else {
    printLine(
      `Total Score: ${currentScore} + ${addition} = ${currentScore + addition}`,
    );
  }
}
function printTotalScore(currentScore, addition) {
  if (currentScore === 0) {
    printLine(`Total Score: ${addition.toString()}`);
  } else {
    printLine(
      `Total Score: ${currentScore} + ${addition} = ${currentScore + addition}`,
    );
  }
}
function printTotalScore ( currentScore , addition ) { if ( currentScore === 0 ) { printLine ( ` ${ addition . toString ( ) } ` ) ; } else { printLine ( ` ${ currentScore } ${ addition } ${ currentScore + addition } ` , ) ; } }
Prints the total score as the sum of the current score and the addition.

If the current score is zero, just the addition and not the sum will be
printed.

@param {number} currentScore The current score.
@param {number} addition The score to add to the current score.
Prints the total score as the sum of the current score and the addition .