title: Is it correct to use one line for loop in JavaScript without curly brackets?
body: <p>I am familiar with one line <code>if statement</code>, i found it <a href="https://stackoverflow.com/questions/11069278">here</a> and <a href="https://stackoverflow.com/questions/8860654">here</a>:</p>
  
  <pre><code>if (x==0) alert('zero');
  </code></pre>
  
  <p>Is it correct to use <code>for loop</code> one line:</p>
  
  <pre><code>for (var i=0; i &lt; 3; i++) alert(i);
  </code></pre>
  
  <p><a href="http://jsfiddle.net/suhailvs/Zrwg5/1/" rel="noreferrer">this fiddle</a> works just fine.</p>