Im trying to change the documents html text (value). It is working but it also gives this error Uncaught TypeError: Assignment to constant variable. Is there another way to replace the value?
//The element
let items = 1
const itemCountSpan = document.getElementById('item-count')
itemCountSpan.innerHTML = items