title: Changing html with javascript / .innerHTML
body: <p>I'm trying to change the html when a user inputs their name when entering the site, but i am having difficulty figuring out why its not working, hopefully someone can help me without me feeling like an idiot!</p>
  <pre><code>    function welcomeUser() {
      let name = prompt(
          &quot;text&quot;
      );
      if (name != null) {
          alert(&quot;You may enter&quot;);
      } else {
          alert(&quot;You may not enter&quot;);
      }
     }
      welcomeUser();
      let userName = document.querySelector(&quot;.user-name&quot;);
      userName.innerHTML = $`{welcomeUser.value}`;
  </code></pre>