Hi,

I am working on the number guesser and have some questions:

If I do not win, there is no message and I can just click “Make a Guess” again until I win. This must be a mistake I made somewhere right? This way the computer has 0 wins.

```
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, targetGuess) => {
const humanDiff = getAbdoluteDistance (humanGuess, targetGuess);
const computerDiff = getAbdoluteDistance (computerGuess, targetGuess);
if (computerDiff >= humanDiff) {
return true
} else {
return false
};
};
const updateScore = winner => {
if (winner === 'human') {
humanScore ++;
}
if (winner === 'computer') {
computerscore ++;
}
};
const advanceRound = () => {
currentRoundNumber ++;
}
const getAbdoluteDistance = (a1, a2) => {
return (Math.abs ((a1 -a2)));
}
const alertMessage = (userGuess) => {
if (userGuess > 9 || userGuess < 0) {
alert ('Guess must be between 0 & 9')
}
}
```