Number Guesser Challenge Project (JavaScript)

This was the first JS project I managed to do without checking hints or watching the tutorial and it worked! So please be kind :face_in_clouds:

let humanScore = 0;
let computerScore = 0;
let currentRoundNumber = 1;

// Write your code below:
const generateTarget = () => {
  return Math.floor(Math.random() * 10);
};

const compareGuesses = (user, computer, secret) => {
  let generateTarget = secret;
  if (user === secret) {
    return true;
  } else if (computer === user) {
    return true;
  } else if (computer === secret) {
    return false;
  } else if (user < computer && computer < secret) {
    return false;
  } else if (computer < user && user < secret) {
    return true;
  } else if (user > computer && computer > secret) {
    return false;
  } else if (computer > user && user > secret) {
    return true;
  } else return true;
};

const updateScore = () => {
  let winner = ('human' || 'computer');
  if (winner === 'human') {
    humanScore + 1;
  } else if (winner === 'computer') {
    computerScore + 1;
  }
};

const advanceRound = () => {
  currentRoundNumber += 1;
};

Hi there! it’s my GitHub and the project “Number Guesser”!

Hello everyone, I have just completed the Guess the Numbers Challenge project (JavaScript) and I would like to share the code.
The number-guessing challenge project (JavaScript) has been completed and the code is shared.
Guess the Numbers Challenge project (JavaScript)