Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript JavaScript Basics (Retired) Introducing JavaScript The JavaScript Console

Thanitsak Leuangsupornpong
Thanitsak Leuangsupornpong
7,490 Points

Can't open the console in Javascript ,Please Help.

How to open the console I can't open it. I use Command + Option + C, but it still can't open the console.Please help.

Igor Yamshchykov
Igor Yamshchykov
24,397 Points

You can use your browser built-in console to do things with javascript, for instance in Google Chrome, you should just press F12 or Ctrl + Shift + I to open developer tools and then go to Console tab, you can try some javascript code there.

Thanitsak Leuangsupornpong
Thanitsak Leuangsupornpong
7,490 Points

I use safari,and when I press Control + Shift,it does't show anything.

2 Answers

Igor Yamshchykov
Igor Yamshchykov
24,397 Points

In Safari you can open web inspector by following steps

  1. Enable the Develop menu option in the Advanced preferences.

  2. Use the optional toolbar button, Develop menu or Inspect Element context menu to access the Web Inspector.

or after enable Develop menu option in preferences you can use Command-Option-I to open inspector

Thanitsak Leuangsupornpong
Thanitsak Leuangsupornpong
7,490 Points

Thanks it Work! but why it doesn't same with Teacher console?

Igor Yamshchykov
Igor Yamshchykov
24,397 Points

the reason it looks different is because Teacher is using Google Chrome, you can try Google Chrome to have the same console, but it doesn't really matter.

thank you I was having the same problem and this fixed it