Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Introduction to Programming Basics Variables

Mike Zhu
Mike Zhu
1,840 Points

How to find the console in my browser?

I am using Safari and chrome. I really want to know how I can find the console. Thanks!

7 Answers

Open Web inspector (alt+command+"i" on Mac) and select Console option. It works on Safari and Chrome.

Hi Mike Zhu

To open console in Chrome press Control+Shift+j and for firefox Control+Shift+K

Additionally, you can right click in Chrome and select "Inspect Element" and a developer tool pane will open in the window. You can select "console" from among them and use that to debug and test code.

Ian Conery
PLUS
Ian Conery
Courses Plus Student 7,308 Points

Hit cmd option j in chrome, that will bring up the javascript console. If you want the dev tools console hit cmd option i. As for Safari try cmd option i

Press ctrl+shift+j for Chrome

Press ctrl+shift+j for Chrome

Corey Beckmann
Corey Beckmann
1,856 Points

Additionally, if you didn't want a keyboard shortcut, in Chrome 41, you can click the three bars on the top right corner of the browser window > More Tools > Developer Tools or JavaScript Console.