Hi, in the following link, theirs a function called playerGame. It will return three things but when I’m playing the game the score disappears and I can only see js-result and ja-moves. I want updateScoreElement() to show while playing and I can’t figure out how to do it.
Hi,
the issue is here inside the function:
document.querySelector(
".js-score"
).innerHTML = `You ${playerMove} - ${computerMove} Computer`;
You’re updating the player and computer moves on the p
element that’s supposed to show the scores.
I hope this helps!