0

Alright so I have looked at other peoples questions but because I honestly am not that good at js I don't understand the problem enough to implement non-specific changes. I am following a tutorial for a class assignment, and everything has been working right for the most part however when I implemented this code

function win(user, computer) {
  userScore++;
  userScore_span.innerHTML = userScore;
  computerScore_span.innerHTML = computerScore;
  console.log(user);
  console.log(computer);
}

The specific part I am having an issue with involves the computerScore_span.innerHTML.

I am not getting any errors for other lines aside from this one at the top of my page

const computerScore_span = document.getElementById("computer-score");

All of my code is written exactly how the video shows, and I have a similar statement for userScore

const userScore_span = document.getElementById("user-score");

which seems to be working perfectly fine.

0 Answers0