You can start the remote debugging from Developer menu. After selecting the enable remote debugging it will open Google Chrome, So that you can log the output into your console. You can also write debugger syntax into your js code.
You can print log message in the terminal using
console.log(). To do so, open a new terminal and run following command for Android:
or following command if you are using iOS:
You will now start to see all the log message in this terminal