Hello, I am having trouble seeing why my code is not working the way it’s suppose to. I’m not getting any errors, it’s probably the logic of what I wrote but I’m not getting any clarity. Any insights/hints would be appreciated. Thank you.

https://www.codecademy.com/practice/projects/number-guesser-independent-practice

```
let humanScore = 0;
let computerScore = 0;
let currentRoundNumber = 1;
// Generate random target number from 0 to 9
const generateTarget = () => {
randomTarget = Math.floor(Math.random()*10);
return randomTarget;
}
// Compare user and computer guess with target number
const compareGuesses = (user, computer, secret) => {
secret = generateTarget();
if (user === secret && computer === secret) {
return true; // return true if human wins
}
if (Math.abs(user-secret) > Math.abs(computer-secret) ){
return false; // return false if computer wins
}
else {
return true;
}
}
// Increases the winner's score after each round
const updateScore = (winner) => {
if (winner = 'user') {
humanScore++
}
else if (winner = 'computer'){
computerScore++;
}
}
const advancedRound(){
if (humanscore++ || computerScore++){
return currentRound++;
}
}
```