Kevo try adding an event listener to the .container
and not the .button
const container = document.querySelector('.container');
Then, in the click
handler use #entered-number
to find out which number to use.
const input = document.querySelector('#entered-number')