Hello all,
I am trying to add a string to a certain element as innerText using JS DOM. But i can’t. When i console.log() the current value of the element, it first gives the current element text which is as expected but right after it gives undefined. I do not know why. Any opinions?
My goal is to state the winner to user. I am trying to do that on line 63-66-69 of JS.
You can find the code here → https://codepen.io/BGB37/pen/JjaQBvj?editors=0010