So basically, like the Developer console - where you can see the outputs to the console via console.log etc....
I want to implement something like this so I can see this on the actual html page instead of having to open the Developer console.
Is there a way of doing this? Thanks!