Since mobile browsers’ do not have developer tools you can use console.re to debug your JavaScript code.