title: Can not set timeout in Node.js loop
body: <p>Here, i tried to set timeout for every iteration but i could not make it because nature of nodejs. Is there any way to do that?  </p>
  
  <p>Thanks in advance</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>for (var i = 1; i &lt;= 1000; i++) {
      setTimeout(function () { console.log('something') }, 3000); 
  }</code></pre>
  </div>
  </div>
  </p>