Game Tetris problem about score and level changing

scoreElement.innerHTML = score;
levelTotal.innerHTML = level;
i wanted to change total of level and score instead these it returns :
[object HTMLDivElement]

We really need to see more of your code. Post a Codepen or Stackblitz (or a repo).


I would assume you are assigning an element and not a value, and it is getting stringified.

<div>test</div>
<p></p>
document.querySelector('p').innerHTML = document.querySelector('div')
test
[object HTMLDivElement]