I have this code:
let money = document.createElement('money')
money.style.color = 'green'
money.style.textAlign = 'center'
money.style.fontSize = '50px'
money.style.backgroundColor = 'blue'
money.textContent = 0
document.body.appendChild(money)
money.onclick = () => {
money++
}
And when I click on money
nothing happens. I want to increment the value shown in the textContent everytime I click on it. How to do it?