I’m stuck on the Number Guesser project.

https://www.codecademy.com/practice/projects/number-guesser-independent-practice

Please review my code below and point out what’s wrong with it.

let humanScore = 0;

let computerScore = 0;

let currentRoundNumber = 1;

// Write your code below:

function generateTarget(targetNumber) {

```
let targetNumber = Math.floor(Math.random() * 10);
return targetNumber;
```

}

const compareGuesses = (humanGuess, computerGuess, targetGuess) => {

```
const humanDifference = Math.abs(targetGuess - humanGuess)
const computerDifference = Math.abs(targetGuess - computerGuess)
return humanDifference <= computerDifference;
```

}

function updateScore(winner) {

```
if (compareGuesses === true) {
winner = 'human';
humanScore += 1;
}
else {
winner = 'computer';
computerScore += 1;
}
```

}

function advanceRound(currentRoundNumber) {

```
currentRoundNumber += 1;
}
```

Thanks in advance!