So i am trying to get the value of an input tag with javascript and show it on the console but it doesnot work at all. this is my code, what am i missing here?
const userTextValue = document.getElementById('user-text').value;
const show = () => {
  console.log(userTextValue);
}
const submit = document.getElementById('submit');
submit.addEventListener('click', show);

