function calculateDamage(modifier) {
    let diceRoll = Math.floor(Math.random() * 10) + 1;
    console.log(`diceRoll: ${diceRoll}`);
    let damage = Math.round(diceRoll * modifier);
    return damage;
  }
/* Pure function that returns the product of randomly generated number between 1-10 
  and the attacker's damage modifier */
Pure function that returns the product of randomly generated number between 1-10
and the attacker's damage modifier
Pure function that returns the product of randomly generated number between 1 - 10 and the attacker ' s damage modifier
function calculateDamage(modifier) {
    let diceRoll = Math.floor(Math.random() * 10) + 1;
    console.log(`diceRoll: ${diceRoll}`);
    let damage = Math.round(diceRoll * modifier);
    return damage;
  }
function calculateDamage ( modifier ) { let diceRoll = Math . floor ( Math . random ( ) * 10 ) + 1 ; console . log ( ` ${ diceRoll } ` ) ; let damage = Math . round ( diceRoll * modifier ) ; return damage ; }
Pure function that returns the product of randomly generated number between 1-10
and the attacker's damage modifier
Pure function that returns the product of randomly generated number between 1 - 10 and the attacker ' s damage modifier