Hey Stetim,

Hopefully you can guide me in the right direction here. I have an issue with my code showing error “unexpected identifier” when I run it. I’ve cross-referenced my code with Codecademy’s solution but I can’t seem to figure out where the impasse is. Here’s my code below.

Edit: Let me add as well that I don’t quite understand these variables in the official solution. Do you need to define new variables or can’t you just use if/else statements as I’ve done in my solution? Just wondering if there’s a practical reason to favour one over the other.

```
const humanDifference = getAbsoluteDistance (argument1, argument2)
const computerDifference= getAbsoluteDistance (argument1, argument2)
```

Please help!

```
let humanScore = 0;
let computerScore = 0;
let currentRoundNumber = 1;
// Write your code below:
const generateTarget = () => {
return Math.floor(Math.random() * 10);
}
const compareGuesses = (humanGuess, computerGuess, secretTargetNumber) => {
if Math.abs((secretTargetNumber - humanGuess) > Math.abs(secretTargetNumber - computerGuess)){
return false
} else if Math.abs((secretTargetNumber - humanGuess) === Math.abs(secretTargetNumber - computerGuess)) {
return true
} else if Math.abs((secretTargetNumber - humanGuess) < Math.abs(secretTargetNumber - computerGuess)) {
return true
}else{
return "Error!"
}
}
const updateScore = winner => {
if (winner = "human") {
humanScore++;
} else if (winner = "computer") {
computerScore++;
}else{
return "Error";
}
}
const advanceRound = () => {
currentRoundNumber = currountRoundNumber++;
}
```