Logical OR operators throws a syntax error here in JS – where am I going wrong?
function playRound(playerSelection, computerSelection) {
if (playerSelection == 'rock' && computerSelection == 'paper') ||
(playerSelection == 'paper' && computerSelection == 'shotgun') ||
(playerSelection == 'shotgun' && computerSelection == 'rock') {
console.log(`Sorry! ${computerSelection} beats ${playerSelection}`);}
}