Extend the JavaScript code below to interact with the displayed HTML elements.

On each button click, increase the value of the button by 1.

Confirm your code by clicking the button!

HTML snippet

<button type="button" id="button">0</button>

JavaScript snippet

const button = document.getElementById('button');

button.addEventListener('click', () => {
  // you code here
});

Preview

image.png