title: Delay for popup modal on load
body: <p>I like this script because it's simple, but am new to JS to I'm not sure how to add a 5 second delay before showing the "welcome" greeting. </p>
  
  <pre><code>var hasSeenGreeting = localStorage.getItem("greeting");
  
  if(!hasSeenGreeting){
         document.getElementById("welcome").style.display = "block";
         localStorage.setItem("greeting", "true");
  }
  
  document.querySelector(".button").addEventListener("click", function(){
    localStorage.removeItem("greeting", "true");
  });
  </code></pre>