title: Can someone explain me what is the difference between an "empty" statement and a normal semicolon in javaScript
body: <p>Can anyone explain me what is the difference between a normal <strong>semicolon ;</strong>  that comes after every statement and the <strong>empty statement ;</strong> in <strong>javaScript</strong></p>
  
  <p><code>console.log(1) ;/* semicolon */          console.log(2)</code></p>
  
  <p>and the empty statement that sometimes comes as the body of  <strong>if, for, while, do-while</strong> statements in <strong>javaScript</strong>
  eg:</p>
  
  <pre><code>if (true)
   ; /* empty statement */
  </code></pre>
  
  <p>is there a difference between both a <strong>semicolon ;</strong> and an <strong>empty statement ;</strong></p>