Hello. The following code gives me a SyntaxError: Unexpected token {

I don’t understand why. Thank you for your help.

```
const compareGuesses = (userGuess, compGuess, targetNum) => {
const userGuessDiff = Math.abs(targetNum - userGuess) ;
const compGuessDiff = Math.abs(targetNum - compGuess) ;
If (userGuessDiff <= compGuessDiff) {
return true ;
} else {
return false ;
}
} ;
```

STEP 4:

Number Guesser | Codecademy