Help

Welcome to the Get Help category!

This is where you can ask questions about your code. Some important things to remember when posting in this category :slight_smile:

  • Learn how to ask a good question and get a good answer!
  • Remember to include a link to the exercise you need help with!
  • If someone answers your question, please mark their response as a solution :white_check_mark:
  • Once you understand a new concept, come back and try to help someone else!
    this is the question can some one check my code

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

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

console.log(generateTarget());
const compareGuesses = (humanGuess, computerGuess, targetGeuss) => {
const humanDifference = Math.ads
(targetGuess - humanGuess);
const computerDifference = Math.ads
(targetGuess - computerGuess);

return (humanDifference <= computerDifference);
}

const updateScore = winner => {
if (winner === “human”) {
humanScore++;
} else if (winner === “computer”) {
computerScore++;
}
}

const advanceRound = () => currentRoundNumber++;

Hey, @system3647087801 welcome to the forums.

Can you tell us what you are having trouble with? And don’t forget to format your code: [How to] Format code in posts.

its not running it is a game but the next round button is not responding

I got it, it was by B’s and D’s I’m dyslexic and it is sometimes hard to see the problem, lOl.