Hello! I have a slight problem understanding in the following challenge https://www.codecademy.com/practice/projects/number-guesser-independent-practice
With this part of the code:
const compareGuesses = (humanGuess, computerGuess, targetGuess) => {
const humanDifference = Math.abs(targetGuess - humanGuess)
const computerDifference = Math.abs(targetGuess - computerGuess)
return humanDifference <= computerDifference
why does the targetGuess work? Where does it get its value? Because in the script.js file there is generateTarget, which as understand defines the number of the target. But I couldn’t find any part that of the code in script.js and game.js that would tie generateTarget directly to targetGuess. What am I missing?