how to extend a method in javascript?
<p>I want to add additional functionality to a method, for instance: </p>

<pre><code>console.log()
</code></pre>

<p>so the original 'log' functionality is retained, and I can get it to do something new as well. Is this possible? I've read a few bits on using prototype but haven't quite grasped it.</p>

<p>Many thanks,</p>
