Javascript Coin System not working

So recently I was working on a coin system. However, when I tried to make it so then for every click the h1, also known as “coinamt”, gets 1 coin. It doesn’t work and the coinamt stays at zero. Here is the code below.

var coins = 0

let coinamt = document.createElement('h1')
coinamt.textContent = coins

let coin1 = document.createElement('button')
coin1.textContent = '+1'
coin1.addEventListener('click', () => {
coins + 1

Probably needs to be “coins = coins + 1” in your click event listener instead of “coins + 1”. [Not certain of the syntax 'cause I don’t know Javascript].

The latter merely adds 1 to the coins value, without saving the result.