const input = document.querySelector('input') input.addEventListener('change', (e) => { console.log(e.target.value); });