How to include alert in number guesser project? where?

Hey all I have been currently working on the number guesser project in full stack engineer career course (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) I am stuck by how AND where to include an alert I have tried many times but it didn’t work. here is my full code

let humanScore = 0;

let computerScore = 0;

let currentRoundNumber = 1;

// Write your code below:

const generateTarget = () => {

return Math.floor(Math.random() * 10)
}

const compareGuesses = (currentHumanGuess, computerGuess, target) => {

if (Math.abs(currentHumanGuess - target) < Math.abs(computerGuess - target)) {
    return true;
} else if (Math.abs(computerGuess - target) < Math.abs(currentHumanGuess - target)) {
    return false;
}  else{
    return true;
}

};

const updateScore = winner => {

if (winner === 'human') {

    humanScore += 1;

} else if (winner === 'computer') {

    computerScore += 1;
} else {
    return humanScore += 1;
}

};

const advanceRound = () => {

currentRoundNumber += 1;

}

Please tell me where should I include alert and where should I do it…

What do you mean by alert?

Alert means when you enter more than 9 or less than 0 I should get a popup like which has the text we give into it. The code will look like this
alert(‘Text’) I should know where and how I need to include it

You need to check the number, yes? Do you want that to happen before or after you call the compareGuess function? How do you compare a variable with two numbers? If you answer these questions, then turn that into code, you should have found the answer.