title: Why use void(0)?
body: <p>Let's assume for a moment that you must create a JavaScript link that doesn't have a meaningful <code>href</code>. (I know that this practice is questionable.) In this case, why do so many people use...</p>
  
  <pre><code>&lt;a href="javascript:void(0);"&gt; My link &lt;/a&gt; 
  </code></pre>
  
  <p>Knowing that <code>void(0)</code> evaluates to <code>undefined</code>, can I simply use the following logic?</p>
  
  <pre><code>&lt;a href="javascript:undefined;"&gt; My link &lt;/a&gt;
  </code></pre>