Show console.log() in an HTML element in JavaScript
<p>I programmed a function, which writes all the stuff in the console (with <code>console.log(string);</code>).</p>

<p>Now I want to "simulate" or show the generated console log in a <code>&lt;p&gt;</code> or a <code>&lt;div&gt;</code>.</p>

<p>Does anyone have an idea how to do this?</p>