Fiddle with output

Template for writing a fiddle which can display a result, rather than having to output it to the console.

by Luis Perez

HTML

<pre id="output"></pre>

JavaScript

console.log = function()
{
    var args = Array.prototype.slice.call(arguments, 0);
    document.getElementById('output').innerHTML += args.join(" ") + "\n";
}