title: javascript function need to be continue after settimeout
body: <p>I have a JavaScript function; from that am calling a delay function.</p>
  
  <pre><code>function(){
    // code
  
    doDelay();
  
    // some other functionality....
  }
  
  function doDelay(){
     setTimeout(function() {alert("after wait");}, 10000);
  }
  </code></pre>
  
  <p>after waiting 10 seconds alert is coming <code>after wait</code>. but its not again continue the <code>some other functionality....</code> of my main function.. After delay I want to execute the remaining functionality. How can I do that?</p>