function playRound(pS, cS) {
  rounds++;
  if (pS == cS) {
    return 'We have the same result!'+` We chose ${pS} together!`;
  } else if ((pS=='scissors' && cS=='paper') || (pS=='paper' && cS=='rock') || (pS=='rock' && cS=='scissors')) {
    pWin++;
    return `You win this round! You chose ${pS} (${pS} beats ${cS})`;
  } else {
    pLose++;
    return `You lose this round! You chose ${pS} (${cS} beats ${pS})`;
  }
}
// It will return the result the srting result (pS: playerSelection; cS: computerSelection)
It will return the result the srting result (pS: playerSelection; cS: computerSelection)
It will return the result the srting result ( pS : playerSelection ; cS : computerSelection )
function playRound(pS, cS) {
  rounds++;
  if (pS == cS) {
    return 'We have the same result!'+` We chose ${pS} together!`;
  } else if ((pS=='scissors' && cS=='paper') || (pS=='paper' && cS=='rock') || (pS=='rock' && cS=='scissors')) {
    pWin++;
    return `You win this round! You chose ${pS} (${pS} beats ${cS})`;
  } else {
    pLose++;
    return `You lose this round! You chose ${pS} (${cS} beats ${pS})`;
  }
}
function playRound ( pS , cS ) { rounds ++ ; if ( pS == cS ) { return 'We have the same result!' + ` ${ pS } ` ; } else if ( ( pS == 'scissors' && cS == 'paper' ) || ( pS == 'paper' && cS == 'rock' ) || ( pS == 'rock' && cS == 'scissors' ) ) { pWin ++ ; return ` ${ pS } ${ pS } ${ cS } ` ; } else { pLose ++ ; return ` ${ pS } ${ cS } ${ pS } ` ; } }
It will return the result the srting result (pS: playerSelection; cS: computerSelection)
It will return the result the srting result ( pS : playerSelection ; cS : computerSelection )