Learning JavaScript? Download my free JavaScript Handbook 🔥

Change the value of the innerText property:

element.innerText = 'x'

To lookup the element, combine it with the Selectors API:

document.querySelector('#today .total')

Edit this page

Here's my latest YouTube video. I talk about why I think that dogs are a great help for developers working remotely: