Number Guesser

Hi Guys,

I’m trying to build out the 4 functions for the Javascript Number Guesser. I’m currently trying to build out the updateScore() function but am having trouble. I’m trying to increase the winner out of human or computers score by 1 but cant seem to crack the code.

Can anyone whose done this assist?

Thanks,
Luke

To increase a variable by one, you can use ++ or +=1:

function someFunc(){
  someVar += 1;
}

To assist further, I would have to have a link to the exercise, and the code you have written so far.

Thank you so much for your help codeneutrino.

I really appreciate it.

1 Like

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.