I gave up trying to write the code solutions ‘in browser’ a while ago as I found it difficult to debug.
I didn’t even know what console.log() was or did at first. People in the chat said use console.log() without explaining what it did.
What I do is create a HTML page with a script and some output areas for the example tests.
I host this page on Apache locally on my PC.
I then use Firefox with Firebug to debug the code as I am now familiar with it’s interface.
Chrome’s and Firefox’s debugging tools are ok but Firebug (a Firefox add-on) has been around a long time.
Once I have what I think is the solution I copy and paste the script into the solution and run the tests. The benefit of this is I have a series of pages with previous solutions saved locally on my PC which I can refer to in future.
PS. I use Bluefish to edit the code as I am using Linux.