Hello,

I’ve been browsing this forum a bit and hope to finaly input working code, but that’s not the case. It looks like that:

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

VSC, where I wrote it, did not return any mistakes. Other that that I have a question for more experienced users:

I see people using various ways to write down a function:

```
* const compareGuesses = (humanGuess, computerGuess, targetGuess) => {}
* compareGuesses = (humanGuess, computerGuess, targetGuess) => {}
* function compareGuesses(humanGuess, computerGuess, targetGuess) {}
```

What’s the difference, is there any?