Hi there,

I’m doing the Number Guesser Project and I’m already stuck on Step 4

I am trying to compare the guesses of the human and the computer, but seem to have an error in my Math.abs object. When I log the variables the maths is not right. What am I doing wrong here?

```
let humanScore = 0;
let computerScore = 0;
let currentRoundNumber = 1;
// Write your code below:
const generateTarget = () => {
return Math.floor(Math.random() * 10);}
const targetNumber = generateTarget()
console.log(generateTarget());
const compareGuesses = (humanGuess,computerGuess, targetNumber) => {
const humanWin = Math.abs(targetNumber - humanGuess);
const computerWin = Math.abs(targetNumber - computerGuess);
console.log(humanWin);
console.log(computerWin);
if (humanWin === computerWin) {
return true};
if (humanWin <= computerWin) {
return true
};
if (humanWin >= computerWin) {
return false
};
};
console.log(compareGuesses(9,1,targetNumber));
```