Hello,

I’m having issue with the code I did on Step 4 on the number guesser project. For reference, this is what I rendered:

// Step 4

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

if (Math.abs((humanGuess - targetGuess) < (computerGuess - targetGuess)) {

return true;

} else if (Math.abs((humanGuess - targetGuess) > (computerGuess - targetGuess)){

return false;

} else {

return true;

}

};

the syntax keeps telling me ‘Unexpected token’. I tried understanding Math abs but I can’t seen to grasp it. Thanks in advance