title: setTimeout with Bootstrap Modal not displaying after time out
body: <p>I'm trying to delay showing a Bootstrap modal until 5 seconds have passed. Here is the section of my code. It seems write from what I have read on MDN. The modal does not appear after any amount of time. Any help would be appreciated.</p>
  
  <pre><code>var timeout;
    function modalAlert(message){
          $("#myModalLabel").text("Hey Look!")
          $('.modal-body').html("&lt;img src='"+message+"'&gt;");
          timeout = window.setTimeout(showModal,5000);
  
    }
    function showModal(){
      console.log("HERE")
      $("#myModal").modal('show')
    }
  </code></pre>
  
  <p>Vijay Ramamurthy helped me find the solution:</p>
  
  <pre><code>var timeout;
    function modalAlert(message){
          $("#myModalLabel").text("Hey Look!")
          $('.modal-body').html("&lt;img src='"+message+"'&gt;");
          window.setTimeout(function(){showModal();},5000);
  
    }
    function showModal(){
      console.log("HERE")
      $("#myModal").modal('show')
    }
  </code></pre>