Difference between console.log enabled verification
<p>I have seen <code>jquery-ui-1.8.11.js</code> verify <code>console.log</code> functionality by doing</p>

<pre><code>if (this.debug)
   console.log()
</code></pre>

<p>I have also seen people define an anonymous function that is a no-op for browsers with no console logging like IE7.</p>

<pre><code>if(typeof console === "undefined") {
    console = { log: function() { } };
}
</code></pre>

<hr />

<p>Is there a technical difference or are both functionally equivalent?</p>
