Every major modern desktop browser comes with a set of developer tools that includes a console (only Internet Explorer 7 and below don’t have one). The situation on mobile devices and tablets is a bit more complicated: Most browsers don’t have developer tools by default, but they can be connected to their desktop equivalents for debugging, as explained in Test and Test and Test Some More.