Hello all, I have been sitting here trying to get around how the compareGuess() function is supposed to work and I cant wrap my head around it and no matter any way I look at it nothing I come up with works. So far I assume that Math.abs is neccesary but I find that when I test this out on paper I get a return statement of true even if the human is not the winner. Here is what I have so far, though I know it wont work.
function compareGuess(humanGuess, computerGuess, targetGuess) => {
if (Math.abs(humanGuess-targetGues())) > Math.abs(computerGuess - targetGuess()) {
return true
}
Here is the link to the exercise
https://www.codecademy.com/paths/full-stack-engineer-career-path/tracks/fscp-javascript-syntax-part-i/modules/fecp-challenge-project-number-guesser/projects/number-guesser-independent-practice