Display console.log Results in JS Fiddle – How to

jsfiddle

Using JS Fiddle how do I display the result of console.log. I'm teaching a class, for free, and I'd like to give me students a place where they can go and run:

console.log('foo');

I want them to be able to see the results of the .log().

Best Answer

  • click on that arrow next to JavaScript
  • and as FRAMEWORKS & EXTENSIONS select No-Libary (Pure JS)
  • paste your console.log('foo'); in JS box
  • under Resources add https://rawgit.com/eu81273/jsfiddle-console/master/console.js
  • and run your script hitting that Play button