title: Javascript: console.log to html
body: <p>I would like to write the console.log output to a div layer.</p>
  
  <p>For example:</p>
  
  <pre><code>document.write(console.log(5+1)); //Incorrect, random example
  </code></pre>
  
  <p>Can someone give me a solution to my problem?</p>
  
  <p>Thank you.</p>
  
  <p>EDIT:</p>
  
  <p>what i meant is, for example:</p>
  
  <pre><code>console.log("hi");
  </code></pre>
  
  <p>and it shows the output "hi" on the screen.</p>
  
  <p><em><strong>Note: An example: <a href="http://labs.codecademy.com/#:workspace">http://labs.codecademy.com/#:workspace</a></em></strong></p>