Example for showing the error in console debugger window

Browser area

Note: Please copy the code and run it, after getting the output in the browser (Chromme, IE, Firefox) click 'F12' and select 'Console', there you can find an error.