I feel like a fool, but i can’t figure out why the function to get a random variable stops working when calling into the play round function. Any tips or hints would be appreciated, i’ve been look at it for hours.

function computerPlay(options)

{`return options[Math.floor(Math.random()*options.length)]; } var options = ['rock', 'paper', 'scissors'];`

function playRound(){

`if (playerSelection === 'rock' && computerSelection === 'paper') { return 'Player Wins ' + playerSelection + ' ' + computerSelection } if (playerSelection === 'paper' && computerSelection === 'rock') { return 'Player Wins ' + playerSelection + ' ' + computerSelection } if (playerSelection === 'scissors' && computerSelection === 'paper'){ return 'Player Wins ' + playerSelection + ' ' + computerSelection } if (playerSelection === 'paper' && computerSelection === 'scissors') { return 'Computer Wins ' + playerSelection + ' ' + computerSelection } if (playerSelection === 'scissors' && computerSelection === 'rock') { return 'Computer Wins ' + playerSelection + ' ' + computerSelection } if (playerSelection === 'paper' && computerSelection === 'scissors'){ return 'Player Wins ' + playerSelection + ' ' + computerSelection } else if (playerSelection === computerSelection){ return 'draw' + playerSelection + ' ' + computerSelection }`

}

const playerSelection = ‘scissors’;

let computerSelection = computerPlay(options);

console.log(computerSelection)