title: How to run javascript timeouts after each other instead of in parallel?
body: <p>I want to use the timeOut function in jquery two times inside one function such as:</p>
  
  <pre><code>$('.button').click(function() {
      setTimeout(function(){
          Do something
      },10000); 
      setTimeout(function(){
          Do something
      },10000); 
  });
  </code></pre>
  
  <p>Here is a sample of my code: <a href="https://jsfiddle.net/Ln74dLp2/3/" rel="nofollow">https://jsfiddle.net/Ln74dLp2/3/</a></p>
  
  <p>How can I chain the two timeouts after each other, instead of them running in parallel?</p>