You can't easily use console.log() with mobile browsers because they don't really have a developer console.

This is a very simple implementation of console that displays its output in a fixed dom element so that you can see your messages. For now it only implements log(), info(), warn(), error()

you can drag it up and down and collapse it with the buttons on the left. Dragging only works with touch since this is really only for mobile.

You can create a bookmarklet with this link - Mobile Debug Console - so that you can use it on any site or you can paste the script into your code: <script src="https://matthewcv.github.io/mobiledebug.js"></script>