Maybe I got the whole thing wrong, but why the target-number is still undefiened?

let humanScore = 0;

let computerScore = 0;

let currentRoundNumber = 1;

// Write your code below:

const generateTarget = () =>{

Math.floor(Math.random() * 9);

};

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

const hguess = Math.abs(secretNumber - humanGuess);

const pcGuess = Math.abs ( secretNumber - computerGuess);

if (hguess > pcGuess) {

return true

} else if (pcGuess > hguess){

return false;

} else if (hguess === pcGuess){

return true;

} else{

return âSomething Went Wronogâ;

};

};

const updateScore = winner =>{

if (winner => âhumanGuessâ){

return humanScore++;

} else if (winner = âcomputerGuessâ){

return computerScore++;

}else {

return âSomething Went Wrongâ;

};

};

const advanceRound = () =>{

currentRoundNumber++;

}